如何使用JavaScript用弹出信息绘制圆

时间:2019-06-25 07:21:45

标签: javascript openlayers

具有Java经验的人可以帮助我使用Java在这个地图上画一个圆圈或添加其他标记图标(带有弹出消息)吗?

enter image description here

<html>
    <head>
        <script src="http://www.openlayers.org/api/OpenLayers.js"></script>
    </head>
    <body>
        <div id="mapdiv"></div>
        <script>
            map = new OpenLayers.Map("mapdiv");
            map.addLayer(new OpenLayers.Layer.OSM());   
            var lonLat = new OpenLayers.LonLat( -78.6608, 35.7757 ) .transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject());
            var zoom=11;
            map.setCenter (lonLat, zoom);
        </script>
    </body>
</html>

0 个答案:

没有答案