Monday 20 November 2017

Does OpenLayers supports KML Ground Overlays?


I am not able to display Ground Overlays in a KML file with OpenLayers. Does OpenLayers supports KML Ground Overlays? If not, how would I proceed in writing my own code or plugin for OpenLayers so that I can display Ground Overlays?



Answer



The regular way does not support it (OpenLayers.Format.KML). as you can see this example contains an overlay in france and it does not show up in openlayers but it does in google earth.


http://openlayers.org/dev/examples/sundials.html



http://openlayers.org/dev/examples/kml/sundials.kml


You're going to have to parse it manually and use OpenLayers.Layer.Image to mount it using the bounds extrancted from the KML overlay element.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...