0
V3 API에서 Google지도에 제조업체를 추가 할 수없는 이유는 무엇입니까? 이 코드입니다 :왜 V3 API의 Google지도에 제조업체를 추가 할 수 없습니까?
<script type="text/javascript">
var map;
var myCenter = new google.maps.LatLng(100, 100);
function CoordMapType() {
}
CoordMapType.prototype.tileSize = new google.maps.Size(256, 256);
CoordMapType.prototype.maxZoom = 18;
CoordMapType.prototype.minZoom = 10;
CoordMapType.prototype.getTile = function (coord, zoom, ownerDocument) {
var div = ownerDocument.createElement('div');
div.innerHTML = '<img name="" src="mapTiles/' + zoom + '/' + coord.y + '/' + coord.x + '.png"/>';
div.style.width = this.tileSize.width + 'px';
div.style.height = this.tileSize.height + 'px';
div.style.fontSize = '10';
return div;
};
CoordMapType.prototype.name = "Tile #s";
CoordMapType.prototype.alt = "Tile Coordinate Map Type";
var coordinateMapType = new CoordMapType();
function initialize() {
var mapOptions = {
zoom: 10,
center: myCenter,
mapTypeControl:false
mapTypeId: "coordinate"
};
map = new google.maps.Map(document.getElementById("map_canvas"),
mapOptions);
map.mapTypes.set('coordinate', coordinateMapType);
var marker = new google.maps.Marker({ position: myCenter, title: "Hello World!" });
marker.setMap(map);
}
</script>
내가 표시 할 수 있습니다 내 server.The 맵에서 타일을 사용하지만 마커가지도에 없습니다.
무엇이 문제입니까?
감사합니다.