Who Me Too'd this topic

Showing results for 
Search instead for 
Do you mean 
Regular Contributor
Posts: 244
Registered: ‎05-01-2016
Accepted Solution
zoom to bounding box url for SDK FAILS at startup - works after - Why????
[ Edited ]

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. 

Who Me Too'd this topic