CFForest - Land Resource Manager 6.2.0.42. July 3rd, 2024..
In order to use LRM Web there are some basic map publishing tasks to consider. These tasks can be accomplished using ArcGIS tools.
ArcGIS GIS Server is required to enable map services. ArcGIS GIS Server is offered in three editions - Basic, Standard, and Enterprise. For LRM Web editing you will need ArcGIS GIS Server Standard.
Publishing your map as a map service to an ArcGIS Server site is a way that you make maps available to the web.
While you can publish maps using either ArcMap or ArcGIS Pro, ArcGIS Pro seems to be more stable and reliable in publishing.
Here are some important tips to get the best performance out of your published layers:
Make sure your version of ArcMap or ArcGIS Pro is at the same release level as LRM Web. See installation guide to determine which version is supported.
To improve initial drawing speed we suggest you set your map extent of the published feature service to a single feature. This will improve the initial loading time of your map service. To set your extent:
Simply select a tabular record and zoom to it.
Save your layer before publishing.
We also recommend that you use scale dependent rendering.
Before publishing the map, register the database with the ArcGIS Server. Right-click at the ArcGIS Server connection and click “Server Properties…” to open the ArcGIS Server Properties dialog. Click the “plus” button to register a database. Data registration provides the server with a list of locations for your web services' source data. Data registration helps you validate that your services will reference data locations known and approved by the server administrator.
After you have prepared an mxd in ArcMap, you can publish the map as a service (File > Share As > Service > Publish Service) to your ArcGIS Server site.
If the published map is for viewing only, check “Mapping”. If you allow editing on the published map, check also “Feature Access”. For a map that has route event layers, you must check “Feature Access” in order to see the route event positions updated on the map after you have updated the locations on the Data View. See also the ArcGIS Pro section.
Click “Analyze” to check for potential issues with publishing this mxd. Note: If you cannot resolve the errors found in this analysis, please try to publish the same map in ArcGIS Pro. There is a chance that the same map may be analyzed and published successfully in Pro even though there are unresolvable errors in ArcMap.
Click “Preview” to preview the published data. If everything looks good, click “Publish” to publish your map as a map service.
You can review your map service in ArcGIS Server Manager.
To make sure the date fields display the value in your time zone, specify a time zone for the published maps in ArcGIS Server Manager after the map is published via ArcMap. This makes sure that the date fields in the Identify popup will display the time in your time zone.
The following steps will guide you on how to publish a map using ArcGIS Pro:
In ArcGIS Pro, load the layers you want to publish on a map.
On the Catalog pane Favorites tab, add the ArcGIS Server via “Add Item”.
After the server is added, right-click on the server name and “Add to Project”. It will appear under “Servers” on the Project tab.
To publish the map, right-click on the server and click “Publish \ Map Service”.
Select the map to be published.
Then, this Publish Map Service pane will appear. On the General tab, specify the name for the map service.
Under the “Shared With” section, check your organization. Check “Everyone” only if you want to make the layer public. See Published Layer Security section below.
On the Configuration tab, check the capabilities. If the published map is for viewing only, check “Map”. If you allow editing on the published map, check also “Feature”. For each checked capabilities, click “Configure Service Properties” to specify the properties.
For a map with route event layers, you must check the “Feature” capability in order to see the route event positions updated on the map after you have updated the locations on the Data View. If “Feature” capability is not checked, the route event layer will be published as a static layer which will not reflect the latest changes in the event table. Click the “Refresh Current Layer” button (under “Viewing Tools”) if you do not see the updated positions on the map, especially if you have modified the location values in the split data view below the map view.
Note: If the published service contains polyline layers (e.g. Road) with m-values, please check “Allow geometry updates without m-values” so that you can use the Link tool to assign a Temp Graphic (which does not have m-values) to become the shape of a polyline feature.
Click the “Analyze” button to identify potential performance bottlenecks and errors.
If there are errors, double-click on the error for help. In this case, a “Register Database” dialog is opened. Click “Create” and register the database.
Then, “Analyze” again. Repeat this process until all errors are gone.
Click “Publish” to publish the map.
Specify a time zone when you publish a map in ArcGIS Pro. If you publish in ArcMap, you can set the time zone in ArcGIS Server Manager after publishing the map. This makes sure that the date fields in the Identify popup will display the time in your time zone.
Note: Starting from ArcGIS Pro 2.4.3, you can publish map services to a standalone ArcGIS Server. Previously, ArcGIS Pro can only publish map services to a standalone ArcGIS Server 10.6 (and higher) via ArcPy scripting (i.e. not publishing directly in the ArcGIS Pro application).
Optionally, after publishing the map, go to ArcGIS Server Manager and uncheck “Filter web content” (Capabilities \ Feature Access \ Advanced Options). This allows you to update an attribute with an XML, e.g. you have configured an overlay with a MAPCONTROLXML() SourceValue function. If “Filter web content” is checked, setting an attribute with an XML will cause an 'Invalid untrusted Html content detected in field’ error.
If you have not checked “Allow geometry updates without m-values” when you publish a map that contains polyline layers with m-values, please check it here in ArcGIS Server Manager. This ensures that you can use the Link tool to assign a Temp Graphic (which does not have m-values) to become the shape of a polyline feature.
To allow the users in your organization to access the published layers, check your organization under “Shared With” when you publish the map. Or, you can modify the access level in Enterprise Portal or ArcGIS Server manager after publishing the layers. Unless you have made the layers public (i.e. check “Everyone”), you will be prompted to enter username and password before you can see the layers on the LRM web map. To avoid the user entering the username and password every time the map opens, the map will read the proxy username (“portalProxyUser ”) and password (“lrmClientSecretKey”) from the AppSettings.json and load the layers.
The following steps will guide you on how to publish a map using ArcGIS Pro:
In ArcGIS Pro, Insert a new Map template.
Customize your map template layout as needed and save it. (Dynamic text :- https://pro.arcgis.com/en/pro-app/2.9/help/layouts/add-and-modify-dynamic-text.htm)
Once the template is saved. Open the Geoprocessing tool and search for the “Get Layout Template Info” tool.
Give the folder to the tool where the map template is saved. And run the tool.
Search for “Export Web Map” tool.
Give the folder to the tool where the map template is saved and choose the layout, and run the tool.
Once the tool is successfully executed, then click on the History tab.
Right click on the “Export Web Map”. then, click on “Share As” and then click on “Share as a web tool”.
Then, this Publish Map Service pane will appear. On the General tab, specify the name for the map service.
Under the “Shared With” section, check your organization. Check “Everyone” only if you want to make the layer public. See Published Layer Security section below.
On the Configuration page, click on the “Synchronous” radio button under Parameters.
On the Content page, click on “Add Tool”.
Add “Get Layout Template info”.
Click on Analize. Resolve all the errors and click on publish.
In Appsettings, please check the “mapPublishDetails” section for configuration.
The web Map View reads the settings specified in the AppSettings.json file. You have to edit the file directly, as no user-interface is available in this release to update the settings. Below are the descriptions for the map-related settings:
DataGroup: Module(Apps) ’s data group ID.
managedLayerURL - URL that contains the editable managed layers (Feature Layers). A managed layer is expected to be named exactly the same as the display name of its corresponding context. Please note that the road layer should be part of this URL if users are allowed to edit the roads.
managedLayerCount - Number of editable managed layers to be loaded. For example, if “managedLayerURL” points to the published map and “managedLayerCount” is “3”, the map will load the first three layers in the published map, i.e. State, County and Tract. If this number is bigger than the number of layers published in the managedLayerURL, the map will fail to zoom to the feature when it first opens.
managedReadOnlyLayerURL - URL that contains the read-only managed layers (Feature Layers), e.g. route event layers. A managed layer is expected to be named exactly the same as the display name of its corresponding context. Please note that the road layer will not be editable if it is included in this URL.
managedReadOnlyLayerCount - Number of read-only managed layers to be loaded
geoprocessingLayerURL - URL that holds the geoprocessing layers (Feature Layers) for bizrule validation or overlay. A geoprocessing layer is expected to be named exactly the same as the display name of its corresponding context specified in a Spatial BizRule table (TFM_SYS_BIZRULE*) or as specified in TFM_SYS_BIZSPATIALOVERLAY_WEB.OVERLAYLAYER_WEB. (This setting replaces the “overlayLayerURL” setting which exists in LRM 4.3 and before).
geoprocessingLayerCount - Number of geoprocessing layers to be loaded
baseLayerURL - URL that contains the base (background) Feature Layers, i.e. point, line, polygon, route event layers.
baseLayerCount - Number of base layers (Feature Layers) to be loaded from baseLayerURL
baseLayer2URL - A second URL for loading base (background) Feature Layers, i.e. point, line, polygon, route event layers.
baseLayer2Count - Number of base layers (Feature Layers) to be loaded from baseLayer2URL
imageryLayerURL - URL that contains an imagery layer.
imageryLayer2URL - A second URL for loading imagery layer
defaultBaseMap - Name of the default basemap from ESRI, e.g. “streets”
defaultMapViewCenterCoordinate - Coordinates (in lat/long) of the center point when the Map View is opened without a feature selected on the tree view. The default value is set to center around North America.
defaultZoomlevel - Default zoom level at which the Map View is opened without a feature selected on the tree view. It represents the level of detail at the center of the view. A small number (e.g. 3) is a small map scale, whereas a large number (e.g. 18) is a large map scale.
mapStorageUnit - Define the unit of measure used to store spatial data in the geodatabase. Possible values: ‘METRES’ or ‘FEET’ (case sensitive).
maxMapSelectionCount - The maximum number of features which the map will select and highlight
portalProxyUser - The portal proxy username with which the map will automatically login before loading a portal feature layer. The map will take the lrmClientSecretKey appsetting value as the password. Without this automatic login, the user will be prompted to enter username / password when the map loads a non-public portal feature layer.
arcgisPrintLayout - Default “Page setup” in the Print Widget. Possible Values:"map-only"|"a3-landscape"|"a3-portrait"|"a4-landscape"|"a4-portrait"|"letter-ansi-a-landscape"|"letter-ansi-a-portrait"|"tabloid-ansi-b-landscape"|"tabloid-ansi-b-portrait"
arcgisPrintCopyrightText - Default “Copyright” text in the Print Widget
arcgisPrintDpi - Default “DPI” in the Print Widget
arcgisPrintFormat - Default “File format” in the Print Widget. Possible Values:"pdf"|"png32"|"png8"|"jpg"|"gif"|"eps"|"svg"|"svgz"
arcgisPortalRestAPI - Portal URL for calling the REST API to add zipped shapefile to the map.
arcgisGeometryServiceUrl - The link to a Geometry Service which performs geometric calculations such as reshape. As the ESRI Help indicates, “By default, the geometry service is not started after you create an ArcGIS Server site. Before you can use the geometry service to do geometric calculations, you'll need to start it in Manager or ArcMap.”
mapPublishDetails - define "name" of the map template, "value": a short form of the map name,"icon" : assign the icon (image path) , "contextId": context ID,"datagroupId", and “arcgisPrintServer” : the printservice url (This url is the one that is published as map template).
Example:-
"mapPublishDetails": [ {
"name" Label shows on the map publishing table of contents, eg) : "Tract Timber Sale Map"-
"contextId": Context ID used for template eg) 315,
"datagroupId": Context DataGroup ID used in template eg) 10,
"layoutName": Layout name eg) "TimberSales",
"printFormat": Print format eg) "pdf",
"printDPI": Resolution in dots per inch. Default value is 96. If the dpi value is modified, then the width and height will be modified proportional to the dpi change. eg) 300
"arcgisPrintServer": Print Server published URL "https:/domain.com/server/rest/services/CF_BRONZE_MAPTEMPLATE/TS_MapTemplate/GPServer/Export%20Web%20Map/execute",
}
spatialEditConfig - As the name describes, this setting is important to have to activate Spatial Edit Buttons (Split and Merge) for the context listed in this setting.
Example:-
spatialEditConfig" :[{
"contextId": 407,
"contextName" : "Stand"
}]
LRM_ManagedLayers :- This is the most important configuration for running spatial side to work with different modules. This settings will update the map view through the different modules.
{ "DataGroup": Module ID. It is needed to load layers,
"managedLayerURL": Feature service URL,
"mapLayerUrl": Map service URL (THIS is needed for Select TOC functionality)
"managedLayerCount": Numbers of layer published,
"geoprocessingLayerURL":GeoProcessing Service,
"geoprocessingLayerCount": Count of GP services
}
Example:-
"LRM_ManagedLayers": [
{ "DataGroup": 10,
"managedLayerURL": "https://cfflrm-qa-portal.forestry.trimble.com/server/rest/services/CF_BRONZE/Stand/featureserver/",
"mapLayerUrl": "https://cfflrm-qa-portal.forestry.trimble.com/server/rest/services/CF_BRONZE/Stand/mapserver/",
"managedLayerCount": "11",
"geoprocessingLayerURL": "https://cfflrm-qa-portal.forestry.trimble.com/server/rest/services/CF_BRONZE/Stand/featureserver/",
"geoprocessingLayerCount": "4"
},
{ "DataGroup": 300,
"managedLayerURL": "https://cfflrm-qa-portal.forestry.trimble.com/server/rest/services/cfflrm-qa-main/Chemical/featureserver/",
"mapLayerUrl" : “”,
"managedLayerCount": "6",
"geoprocessingLayerURL": "",
"geoprocessingLayerCount": ""
}
]
Notes:
Application Settings will be managed through Web UI in a future release for administrator users.
Refer to Publish a Map on how to publish the layers with edit and read-only privileges.
The standard and recommended way to access LRM Web is through Trimble’s network (SaaS - Software as a Service). In this case Trimble’s Single Sign-On grants access all Connected Forest’s services in your subscription.
Alternatively, LRM Web can be deployed on premise, in which case the login process uses the same username/password as in LRM Desktop.