1

I am using the traditional Popup of JavaScript API and it seems to not work properly in my application. When you click on the map, the Popup comes fine but when you click on the Zoom to link button, the map zooms in and then if you move the map, the map disappears.

It only returns when you refresh the app. Not sure what is causing it?

1 Answer 1

1

It looks like a spatial reference issue, your map is in WGS 1984 Web Mercator (Auxiliary Sphere) ("wkid":3857/102100*) and you are asking it to zoom to a 'States' object in a geographic coordinate system ("wkid": 4326 - GCS_WGS_1984.). Either project the states layer in to web mercator or override the zoom function and project the geometry before zooming.

*I would use 102100 to represent WGS 1984 Web Mercator (Auxiliary Sphere). see this article

1
  • That is it. Thanks a lot. I changed all wkid to 102100
    – Sam007
    Commented Nov 23, 2012 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.