맵 서버 지원 타일.
MapServer가 PROJ를 지원하는지 확인하려면 @zachatrocity가 지적한 문서를 확인하십시오.
이 문서는 2008/04/30에 작성되었으며 더 이상 Google Map JavaScript API에서 지원하지 않습니다.
오버레이는 여기에서 찾을 수 있습니다로 자신의 맵 서버 타일을 사용하는 방법에 대한
현재 문서 : https://developers.google.com/maps/documentation/javascript/examples/maptype-base
그 샘플에 따라,하지만 당신은 당신의 자신의 타일로 제공으로 getTile 기능 변경해야
CoordMapType.prototype.getTile = function(coord, zoom, ownerDocument) {
var url = "http://[change this into your mapserver ip]]/cgi-bin/mapserv.exe?";
url += "map=/path/to/your/mapfile.map&";
url += "mode=tile&"; // you need this!
url += "layers=yourLayer&";
//url += "layers=layer1 layer2&";
url += "tilemode=gmap&"; // you need this
url += "tile=" + coord.x + " " + coord.y + " "+zoom; // and this
var myMapServerTile = ownerDocument.createElement('img');
myMapServerTile.src= url;
return myMapServerTile;
};
을 see modified preview here
확대/축소 할 때 타일 생성은 어떻게됩니까? 이 작업을 수행하는 Google지도 또는 MapServer API에 있습니까? >지도 서버와 자신의 공간 데이터베이스를 사용하면 자신 만의 타일을 생성 할 수 있습니다 (Google지도를 사용하지 않으려는 경우). 오픈 소스 솔루션 tilecache 및 openlayers를 확인하십시오. –