06-03-2016 08:58 AM - edited 06-06-2016 06:32 AM
This example for processing a URL to zoom to a bounding box was very helpful:
http://community.hexagongeospatial.com/t5/Shared-Samples/Examples-Zoom-To-BBox-Url/ta-p/431
but it doesn't appear to work for me on startup. I think api.js zooms to a different bounding box on startup.
It works if you make a toolbar command for it and click after your portal has started up and displayed map but i want to have the initial map be the one defined by the bbox=x1,y1,x2,y2 i am supplying in my URL.
I added the code to HelloWorld.js and it is definately being processed when the portal starts but the resulting map is not in the right place. It's not a projection issue - the x1,y1,x2,y2 are being properly converted to screen coordinates that work once the initial map has been displayed.
Solved! Go to Solution.