Opened 16 years ago
Closed 16 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.
Attachments (1)
Change History (3)
by , 16 years ago
Attachment: | tileaccess.20080415.patch added |
---|
comment:1 by , 16 years ago
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)); }
Note:
See TracTickets
for help on using tickets.
Proof of concept patch