数据库中有北京的地理坐标,我想点击一个定位按钮 在中国地图上迅速定位的北京的这个地方并且在地图上插入一个小图片

Topics: SharpMap Project, SharpMap v0.9 / v1.x, SharpMap v2.0, Web Controls
Apr 8, 2010 at 10:40 AM

数据库中有北京的地理坐标,我想点击一个定位按钮 在中国地图上迅速定位的北京的这个地方并且在地图上插入一个小图片

我想请教下该怎么实现。。

Coordinator
Apr 8, 2010 at 11:17 AM

Hello chenwengi, you will probably have greater success if you post your question/remark/suggestion in english.

Cheers FObermaier

Apr 9, 2010 at 1:47 PM

thank you
This problem has been resolved

// cmd,cmy  表示实际坐标
function dingWei(cmx,cmy) {
    ajaxMapObj.minX = cmx - (ajaxMapObj.zoom * 0.5);
    ajaxMapObj.maxY = cmy + (ajaxMapObj.zoom * ajaxMapObj.container.offsetHeight / ajaxMapObj.container.offsetWidth * 0.5);
    SharpMap_BeginRefreshMap(ajaxMapObj,1);
  
}