Opened 12 years ago

Closed 12 years ago

#2581 closed enhancement (fixed)

Tile Access for Google Maps and other World Tile UIs

Reported by: pramsey Owned by: pramsey
Priority: normal Milestone: 5.2 release
Component: MapServer CGI Version: svn-trunk (development)
Severity: normal Keywords:
Cc:

Description

Using Mapserver to render data for use within alternate mapping systems is a growing use case. A new access API could allow Google Maps users to overlay Mapserver data very simply and accurately. Like the WMS API, the GMaps API will allow users to have a simple install'n'run option for serving data to a de facto standard user interface.

http://host/cgi-bin/mapserv?map=/the.map&layers=foo,bar&mode=tile&tilemode=spheremerc&tile={X}+{Y}+{Z}

Attachments (1)

tileaccess.20080415.patch (17.0 KB) - added by pramsey 12 years ago.
Proof of concept patch

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by pramsey

Attachment: tileaccess.20080415.patch added

Proof of concept patch

comment:1 Changed 12 years ago by pramsey

Use with GMaps API thusly:

 if (GBrowserIsCompatible()) {
   var myLayer = new GTileLayer(null,null,null,{
                tileUrlTemplate:'http://localhost/cgi-bin/mapserv?map=/your/map.map&mode=tile&layers=continent&tilemode=spheremerc&tile={X}+{Y}+{Z}',
                isPng:true,
                opacity:0.5 });
   var map = new GMap2(document.getElementById("map"));
   map.addControl(new GLargeMapControl());
   map.addControl(new GMapTypeControl());
   map.setCenter(new GLatLng(0.0, 0.0), 1);
   map.addOverlay(new GTileLayerOverlay(myLayer));
 }

comment:2 Changed 12 years ago by pramsey

Resolution: fixed
Status: newclosed

Committed as of r7547.

Note: See TracTickets for help on using tickets.