Map Shaded http://demo.silkea.com/map_shade.png- 자바 스크립트
을 내가 예를 들어, 참조 영역을 그리기 달성하기 위해 노력하고 있습니다. 음영 처리, 정적, 사용자 입력 또는 변경 작업이 없습니다.
Javascript 및 Google Map V3를 사용하여 동적으로 그리기의 예를 찾을 수 있지만 정적은 아닙니다.
는 어떤 도움을 여기 다른 사람입니다 ...
그녀를 얻었다 감사합니다 ... 제안 들으 ... 그것은 무엇을 할 것 InfoBox 같은 소리
<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>
도움이되어 좋았습니다. 아래에서 내 대답이 내 질문에 해당한다고 생각되면 답변 옆에있는 화살표 모양을 클릭하여 동의라고 표시하는 것이 일반적입니다. –