Hi All,
I'm running into an issue with field maps where I can add a point at my location (GPS) but if I move the cross hairs to a manual location, the button to add/update the point greys out and I can't add/update.
It only appears to be an issue with point layers, I can add a polygon to my polygon layer no problem. It also doesn't seem to be an issue with a map I have that uses an offline area. The current map I'm troubleshooting is connected to the server so that the layer changes are automatically updated.
I'm not sure if this is something I have to change in terms of settings, or if it's some sort of bug. Any advice would be appreciated!
Solved! Go to Solution.
I opened a case with Esri and we found a solution. The issue was that my point layer was z-aware but there wasn't a default z-value enabled. Using the GPS location created a z-value, but attempting to manually choose the location would not create a z-value.
I had to go onto my map service on the server and change a setting to enable a default z-value. Here is a link to the steps I followed as provided by my very helpful Esri representative:
I have a similar issue. I can only create points to my GPS location, cannot move the location manually, or the buttons grey out. I created a copy of the existing web map using the Python API; the original map seems to work. I wonder if I'm missing some settings.
web_map_properties_dict = {
"type": wm_props["type"],
"title": wm_props["title"] + "_CLONE_WEB_MAP",
"snippet": wm_props["snippet"],
"tags": wm_props["tags"],
"description": wm_props["description"],
"commentsEnabled": wm_props["commentsEnabled"],
"text": web_map_data,
'typeKeywords': wm_props["typeKeywords"],
"access": wm_props["access"]
}
web_map_item = gis.content.add(
item_properties=web_map_properties_dict,
owner=args.owner,
folder=args.folder)
I opened a case with Esri and we found a solution. The issue was that my point layer was z-aware but there wasn't a default z-value enabled. Using the GPS location created a z-value, but attempting to manually choose the location would not create a z-value.
I had to go onto my map service on the server and change a setting to enable a default z-value. Here is a link to the steps I followed as provided by my very helpful Esri representative:
Any idea how the z values are configured in JSON format? And does this mean that the feature service has some default z-values or the web map?
I figured it out. We need to set the following values in the feature service: zDefault and enableZDefault. In the below, I set them from an existing feature service's JSON, but you can also use the following: zDefault = 0 and enableZDefault = true.
pprint(feature_layer_collection.manager.update_definition({
"zDefault": flc_data["zDefault"],
"enableZDefaults": flc_data["enableZDefaults"],
}))