地图阴影 http://demo.silkea.com/map_shade.png
例如,我正在尝试完成绘制参考区域。只是阴影,静态,没有进一步的用户输入或更改。
尝试使用 Javascript 和 Google Map V3 来完成 - 可以找到动态而非静态绘图的示例。
任何帮助表示赞赏
得到了她...这是给其他人的...谢谢您的建议...
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
var myLatLng = new google.maps.LatLng(51.176630373, -114.47321937);
var myOptions = {
zoom: 15,
center: myLatLng,
mapTypeId: google.maps.MapTypeId.HYBRID
};
var mapsquare;
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
var squareCoords = [
new google.maps.LatLng(51.179858807660786, -114.47836921691896),
new google.maps.LatLng(51.173563152178794, -114.47836921691896),
new google.maps.LatLng(51.173563152178794, -114.46892784118654),
new google.maps.LatLng(51.179858807660786, -114.46892784118654)
];
// Construct the polygon
mapsquare = new google.maps.Polygon({
paths: squareCoords,
strokeColor: "#FF0000",
strokeOpacity: 1,
strokeWeight: 1,
fillColor: "#FF0000",
fillOpacity: 0.35
});
mapsquare.setMap(map);
}
</script>
</head>
<body onload="initialize()">
<br><br>
NW Marker <br>
51.179858807660786 -114.47836921691896
<br><br>
SE Marker<br>
51.173563152178794 -114.46892784118654
<br><br>
<div id="map_canvas" style="width: 850px; height: 450px;"></div>
<br><br>
<br><br>
</body>