admin管理员组文章数量:1427333
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 ing 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 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 ing 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.
1 Answer
Reset to default 3You can add marker using this example: http://help.arcgis./en/webapi/javascript/arcgis/help/jssamples_start.htm
Hope this helps Cheers Al
本文标签: javascriptHow to add markers to ArcGIS map with XY coordinatesStack Overflow
版权声明:本文标题:javascript - How to add markers to ArcGIS map with XY coordinates - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745494009a2660729.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论