How to add markers to ArcGIS map with XY coordinates

How do I add markers to a map with coordinates? I saved the extent in database along with X,Y coordinates after finding the location. When coming back to the application, I don't know how to add markers with coordinates. var s = "XMin: " + ext.xmin + " YMin: " + ext.ymin + " XMax: " + ext.xmax + " YMax: " + ext.ymax; document.getElementById('extent').value = s; function showCoordinates(evt) { //get mapPoint from event var mp = evt.mapPoint; //display mouse coordinatesLabel1 dojo.byId("Label1").innerHTML = mp.x + ", " + mp.y; } Please help me with `setExtent`! Thanks. **Updated:** I am using the ESRI map on the client side and I'm trying to refresh with `asp:button`; that's the reason why the map didn't get refreshed.

以上就是How to add markers to ArcGIS map with XY coordinates的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏