Web Intelligent Solutions
EnglishRomana
font size Increase font size Default font size Decrease font size
screen size Narrow screen resolution Wide screen resolution Auto adjust screen size
Home arrow WISroGIS Tutorials arrow Bucharest city map - OpenStreetMap layers

Bucharest city map - OpenStreetMap layers

Print E-mail

WISroGIS renders several layers from OpenStreetMap, completed with OpenStreetMap routing extension:

  • Mapnik
  • Osmarender
  • Cycle map as TMS layer
  • CloudMade as TMS layer

Status: ready

Powered by WISroGIS 1.11 Zeus

 

 {WISroGIS center_lon='26.102753'|center_lat='44.436131'| ...

baseLayer='OSM.Mapnik("OpenStreetMap Mapnik",{opacity:1.00})'|

baseLayer='OSM.Osmarender("OpenStreetMap Osmarender",{visibility:false,opacity:1.00})' |

baseLayer='TMS("OpenStreetMap Cycle Map", ["http://a.andy.sandbox.cloudmade.com/tiles/cycle/","http://b.andy.sandbox.cloudmade.com/tiles/cycle/", "http://c.andy.sandbox.cloudmade.com/tiles/cycle/"], { type: "png", getURL: getTileURL, displayOutsideMaxExtent: true, attribution: cycleattrib, transitionEffect: "resize"})'|

baseLayer='TMS("OpenStreetMap CloudMade", ["http://a.tile.cloudmade.com/8bafab36916b5ce6b4395ede3cb9ddea/1/256/", "http://b.tile.cloudmade.com/8bafab36916b5ce6b4395ede3cb9ddea/1/256/", "http://c.tile.cloudmade.com/8bafab36916b5ce6b4395ede3cb9ddea/1/256/"],{ type: "png", getURL: getTileURL, displayOutsideMaxExtent: true, attribution: cmstandardattrib, transitionEffect: "resize"})'|

 

TMSscript='var cycleattrib = "",cmstandardattrib=""; function getTileURL(bounds) { var res = this.map.getResolution();  var x = Math.round((bounds.left - this.maxExtent.left) / (res * this.tileSize.w)); var y = Math.round((this.maxExtent.top - bounds.top) / (res * this.tileSize.h)); var z = this.map.getZoom(); var limit = Math.pow(2, z); if (y < 0 @@ y >= limit) { return null; } else { x = ((x % limit) + limit) % limit; var url = this.url; var path = z + "/" + x + "/" + y + ".png"; if (url instanceof Array) { url = this.selectUrl(path, url);} return url + path;}}' ... ~}


Digg!Del.icio.us!Technorati!Yahoo!Ma.gnolia!
 
< Prev   Next >