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 Overlaying KML polygons on Google/Yahoo maps

Overlaying KML polygons on Google/Yahoo maps

Print E-mail

Action:

For distance measurements, the distances are computed as distances between projected longitude letitude coordinates between points.

Note that the area measurements, geometries drawn are planar geometries and the metrics returned by the measure control are planar measures by default. If your map is in a geographic projection or you have the appropriate projection definitions to transform your geometries into geographic coordinates, you can set the `Use geodesic` property of the control to true to calculate geodesic measures instead of planar measures.

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})'

~}

 


Digg!Del.icio.us!Technorati!Yahoo!Ma.gnolia!
 
Next >
  • 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…
  • Va trimitem prezenta scrisoare pentru a va multumi pentru promptitudinea si rapiditatea cu care ne-ati raspuns cerintelor noastre. Apreciem calitatea serviciilor dumeavoastra, calitatea modului in…
  • We have met him over the Internet, but it was probably one of the luckiest days of my life ! He's done an excellent job…
  • Rezultatul colaborarii noastre cu echipa WIS este faptul ca firma Eurosprint Travel a avut de castigat atat ca imagine, care s-a imbunatatit considerabil, cat si…
  • "Prompt, serious, well organized, strongly recommended"
    (Sorin Fianu, Scientific Secretary)