New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tile Access for Google Maps and other World Tile UIs #2581

Closed
mapserver-bot opened this Issue Apr 3, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@mapserver-bot

mapserver-bot commented Apr 3, 2012

Reporter: pramsey
Date: 2008/04/15 - 20:19
Trac URL: http://trac.osgeo.org/mapserver/ticket/2581
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}

@mapserver-bot

This comment has been minimized.

Show comment
Hide comment
@mapserver-bot

mapserver-bot Apr 3, 2012

Author: pramsey
Date: 2008/04/15 - 23:08
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));
 }

mapserver-bot commented Apr 3, 2012

Author: pramsey
Date: 2008/04/15 - 23:08
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));
 }
@mapserver-bot

This comment has been minimized.

Show comment
Hide comment
@mapserver-bot

mapserver-bot Apr 3, 2012

Author: pramsey
Date: 2008/04/30 - 22:28
Committed as of 0e40cdb (r7547).

mapserver-bot commented Apr 3, 2012

Author: pramsey
Date: 2008/04/30 - 22:28
Committed as of 0e40cdb (r7547).

@mapserver-bot

This comment has been minimized.

Show comment
Hide comment

mapserver-bot commented Apr 5, 2012

@ghost ghost assigned pramsey Apr 5, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment