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 Creating OpenStreetMap Cycle Map layers with WISroGIS

Creating OpenStreetMap Cycle Map layers with WISroGIS

Print E-mail
Powered by WISroGIS 1.11 Zeus

{WISroGIS

mapoptions='maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),

maxResolution: 156543, units: "m", projection: "EPSG:900913",

displayProjection:  new OpenLayers.Projection("EPSG:4326X")'|

center_lon='2426438.5'|center_lat='4679205.6'|

width='450px'|height='400px'|layerswitcher=1|overview=0|zoom_level=7|

baseLayer='TMS("OSM 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("CloudMade style",

["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;}}'|

kml='GML("Sundials sample POI", "cache/sundials.kml",{format: OpenLayers.Format.KML, formatOptions: {extractStyles: true,extractAttributes: true},projection: new OpenLayers.Projection("EPSG:4326")})' ~}

 


Digg!Del.icio.us!Technorati!Yahoo!Ma.gnolia!
 
< Prev   Next >
  • Rapiditate, eficienta, calitate - doar cateva dintre atributele voastre!  Multumesc pentru colaborare ! Si pe viitor, sa o tinem tot asa !
    (Dr. Tudor Ionescu,…
  • Societatea Romana de ORL - Revista Societatii de ORL apreciaza colaborarea cu firma dvs., calitatea serviciilor si promptitudinea cu care ne-ati onorat contractul. Dorim in…
  • The WISro Yahoo Quotes component is a very powerful add-on and exactly the addon we were looking for.It was very easy to install and easy…
  • Cristi worked on a Mambo web project for our company web site and we were ecstatic with his dedication and professionalism with the project. We…
  • Inventiv, Intuitiv, un adevarat plastician al web-ului; modelator si creativ deopotriva.
    (Leonard Dobrinescu, Manager)
    www.jaluzeleverticale.ro