Ticket #2581 (closed enhancement: fixed)

Opened 3 months ago

Last modified 2 months ago

Tile Access for Google Maps and other World Tile UIs

Reported by: pramsey Assigned to: 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

tileaccess.20080415.patch (17.0 kB) - added by pramsey on 04/15/08 14:20:43.
Proof of concept patch

Change History

04/15/08 14:20:43 changed by pramsey

  • attachment tileaccess.20080415.patch added.

Proof of concept patch

04/15/08 17:08:13 changed 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));
 }

04/30/08 16:28:13 changed by pramsey

  • status changed from new to closed.
  • resolution set to fixed.

Committed as of r7547.