Ticket #2581 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

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

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

Change History

Changed 4 years ago by pramsey

Proof of concept patch

Changed 4 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));
 }

Changed 4 years ago by pramsey

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

Committed as of r7547.

Note: See TracTickets for help on using tickets.