This article from:http://wiki.openstreetmap.org/wiki/OpenLayers_Simple_Example Deploy an OpenStreetMap slippymap on my own website This simple example may help if you are Deploying your own Slippy Map. This DHTML snippit will bring in the OpenLayers
//鼠标坐标:在SVG经过缩放.偏移.ViewBox转换后,鼠标坐标值 var mouseCoord = { x : ., y : . }; //用户坐标:相对于原始SVG,坐标位置 var userCoord = { x : ., y : . }; .; //半径 var svgDocument = null; var svgRoot = null; //获取鼠标事件相关的SVG Document function getSVGDocument(evt) { var target = evt.
tmp.addPosition = function (map, item) { var ele = document.createElement("div"); var img = document.createElement("img"); img.setAttribute('src', '/images/blueIcon.png'); var a = document.createElement("a"); a.setAttribute('