WISroGIS Tutorials
Creating OpenStreetMap Cycle Map layers with WISroGIS
Creating OpenStreetMap Cycle Map layers with WISroGIS |
|
|
|
Powered by WISroGIS 1.11 Zeus
{WISroGIS mapoptions='maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
center_lon='2426438.5'|center_lat='4679205.6'| width='450px'|height='400px'|layerswitcher=1|overview=0|zoom_level=7| baseLayer='TMS("OSM Cycle Map",
baseLayer='TMS("CloudMade style",
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")})' ~}
|
||||
| < Prev | Next > |
|---|