fuliaoli

Zoom to wrong point

Discussion created by fuliaoli on Jan 24, 2014
Latest reply on Jan 28, 2014 by fuliaoli
I have a form for users to enter latitude/longtitude and when sumitted, the map would centerAndZoom to the point, but the result is not what I thought would be.
Here're steps I take:
Create a point with lon/lat which, in turn, is converted to a point of webmercator using the following
point = webMercatorUtils.geographicToWebMercator(point) before setting it to a query.geometry.
Somehow, the location of point is calcualted way off.  Then I tried to create an extent around the point of webmercator, and it didn't work either.
Please help.
Thanks.

Outcomes