Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer
    
That is it. Thanks a lot. I changed all wkid to 102100 –  Sam007 Nov 23 '12 at 18:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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