MapGuide/AIMS OSM TransportMap and CycleMap API Key Required

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

MapGuide/AIMS OSM TransportMap and CycleMap API Key Required

RenoSun
This post was updated on .
Hi all,

I just would like to share how I updated the FusionSF.js to load OSM tiles with API KEY.

So...you won't see the water marks "Required API Key" on the top of your OSM map tiles. However, if you're heavily using OSM map tiles, you will have to pay thunderforest monthly fee.

http://www.thunderforest.com/docs/apikeys/

... about code line 113806
             if (this.mapTag.extension.Options[0].type[0] == "Mapnik"){
                    this.oLayerOL = new OpenLayers.Layer.OSM[this.mapTag.layerOptions.type](this.getMapName(), null, this.mapTag.layerOptions);
                }
                else if (this.mapTag.extension.Options[0].type[0] == "CycleMap"){
                    //this.oLayerOL = new OpenLayers.Layer.OSM(this.getMapName(), null, this.mapTag.layerOptions);
                    this.oLayerOL = new OpenLayers.Layer.OSM("t@h", ["https://a.tile.thunderforest.com/cycle/${z}/${x}/${y}.png?apikey=YOURAPIKEY", "https://b.tile.thunderforest.com/cycle/${z}/${x}/${y}.png?apikey=YOURAPIKEY", "https://c.tile.thunderforest.com/cycle/${z}/${x}/${y}.png?apikey=YOURAPIKEY"]);
                }
                else if (this.mapTag.extension.Options[0].type[0] == "TransportMap") {
                    this.oLayerOL = new OpenLayers.Layer.OSM("t@h", ["https://a.tile.thunderforest.com/transport/${z}/${x}/${y}.png?apikey=YOURAPIKEY", "https://b.tile.thunderforest.com/transport/${z}/${x}/${y}.png?apikey=YOURAPIKEY", "https://c.tile.thunderforest.com/transport/${z}/${x}/${y}.png?apikey=YOURAPIKEY"]);
                }

You may see the result on our public GIS Recreation Map.

I am using AIMS 2014, and I am not sure if this issue was fixed in the new version or not.

Cheers!
Reply | Threaded
Open this post in threaded view
|

Re: MapGuide/AIMS OSM TransportMap and CycleMap API Key Required

GordL
This post has NOT been accepted by the mailing list yet.
Thanks for postal that Reno.

I particularly like the "Spinal Map"!
Reply | Threaded
Open this post in threaded view
|

Re: MapGuide/AIMS OSM TransportMap and CycleMap API Key Required

GordonL
Thanks for postal that Reno.

I particularly like the "Spinal Map"!