WISroGIS Tutorials
Overlaying KML polygons on Google/Yahoo maps Overlaying KML polygons on Google/Yahoo maps |
|
|
Powered by WISroGIS 1.11 Zeus
Combined Google/Yahoo base layers with overlayed region soils data (50% opacity). Code for above example listed below: {WISroGIS center_lat='-6.858'|center_lon='37.559'| reprojectCenter='1'| width='100%'| height='400px'| layerswitcher=1| overview=0| permalink=0| zoom_level=8| mapoptions='maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), maxResolution: 156543.0399, units: "m", projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326")'| baseLayer='Google("Google", {type: G_SATELLITE_MAP, "sphericalMercator": true})'| baseLayer='Yahoo("Yahoo Hybrid",{type: YAHOO_MAP_HYB, "sphericalMercator": true})' | kml='GML("KML overlay", "cache/region_soils.kml", {format: OpenLayers.Format.KML, formatOptions: {extractStyles: true, extractAttributes: true,maxDepth:2}, projection: new OpenLayers.Projection("EPSG:4326")},{opacity:0.50})' ~}
|
||||
| Next > |
|---|