Is it possible to create an Indoor Viewer Configurable App with data from a branch version?
We have a facility with data that currently lives in a branch version. We do not want to move it to default yet but we would like to stand up a viewer for them to use. Is this possible?
Solved! Go to Solution.
You may have already tested this by now but I was curious and it is possible - for each layer in the web map you need to add the gdbVersion custom parameter with your branch version's name (as described in this thread) and then when you use the web map in the Indoor Viewer app the layers will be referencing your version rather than default. Sharing/saving the web map in ArcGIS Pro while switched to the version does not do the trick.
You may have already tested this by now but I was curious and it is possible - for each layer in the web map you need to add the gdbVersion custom parameter with your branch version's name (as described in this thread) and then when you use the web map in the Indoor Viewer app the layers will be referencing your version rather than default. Sharing/saving the web map in ArcGIS Pro while switched to the version does not do the trick.
Well I have learned something new today... This did the trick! I'm not sure I would have stumbled upon that solution. It worked like a charm. Thank you!
Too bad that changing it in Pro doesn't port across to the Web Map. (sigh)
Upon further review - this solution "sort of" worked. While it did draw the geometry from the proper version, I cannot identify any of the Units.
After reviewing in DevTools, it looks like the query request being sent when a user clicks on a unit does not include the gdbVersion parameter.
Returns nothing:
/FeatureServer/1/query?f=json&multipatchOption=xyFootprint&objectIds=56464&outFields=*&outSR=102100&returnZ=true&spatialRel=esriSpatialRelIntersects
Returns Proper Results:
/FeatureServer/1/query?f=json&multipatchOption=xyFootprint&objectIds=56464&outFields=*&outSR=102100&returnZ=true&spatialRel=esriSpatialRelIntersects&gdbVersion=<versionname>
I'm assuming this is something hardcoded into the Indoor Viewer app and cannot be modified?