[Geomoose-users] MapBox tiles in GM?

Jim Klassen klassen.js at gmail.com
Wed Nov 28 07:50:41 PST 2012


I haven't worked with MapBox tiles, but I've added MapCache and other OSM like tile services to GeoMoose.

The important part is that your projection and scales exactly match that of the tileset.  I think max_extent needs to match too, but I don't remember off the top of my head.  Then define a <map-source type="tms" ...> and use it like any other map-source.

<mapbook version="2.0">
<configuration>
<param name="scales">
156543.03392804099712520838,78271.51696402048401068896,39135.75848201022745342925,19567.87924100512100267224,9783.93962050256050133612,4891.96981025128025066806,2445.98490512564012533403,1222.99245256282006266702,611.49622628141003133351,305.74811314070478829308,152.87405657035250783338,76.43702828517623970583,38.21851414258812695834,19.10925707129405992646,9.55462853564703173959,4.77731426782351586979,2.38865713391175793490,1.19432856695587897633,0.59716428347793950593
</param>
<param name="max_extent">-20037508, -20037508, 20037508, 20037508</param>
<param name="initial_extent">-10385454,5100000,-8301000,6435000</param>
<param name="projection">EPSG:3857</param>

...

  </configuration>
  ...

  <map-source name="osm-lal" tiled="true" type="tms" width="256" height="256" reference="on">
  <layer name="lines_and_labels at grid"/>
  <url>http://xxx.xxx.xxx.xxx/mapcache/tms/</url>
  <param name="layername" value="lines_and_labels at grid"/>
  </map-source>
  ...
</mapbook>

On Nov 27, 2012, at 2:40 PM, Paul Wickman wrote:

> 
> Anybody work with adding MapBox tiles (via OpenLayer XYZ layer) into GeoMoose?
> 
> 
> -- 
> Paul Wickman
> CTO | Flat Rock Geographics
> 612.280.5850 | paul at flatrockgeo.com
> www.flatrockgeo.com | twitter.com/flatrockgeo
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20121128/89b4fcb0/attachment.html>


More information about the Geomoose-users mailing list