Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
XML
I want to display the screen overlay on Google maps like Google Earth using KML.

Below is the sample code for displaying the screen overlay in Google Earth using KML but i need to display the image in Google maps.

<pre lang="xml">&lt;ScreenOverlay&gt;
    &lt;name&gt;Key&lt;/name&gt;
    &lt;Icon&gt;
        &lt;href&gt;files/mykey.png&lt;/href&gt;
    &lt;/Icon&gt;
    &lt;overlayXY x=&quot;0&quot; y=&quot;0&quot; xunits=&quot;fraction&quot; yunits=&quot;fraction&quot;/&gt;
    &lt;screenXY x=&quot;25&quot; y=&quot;25&quot; xunits=&quot;pixels&quot; yunits=&quot;pixels&quot;/&gt;
    &lt;rotationXY x=&quot;0&quot; y=&quot;0&quot; xunits=&quot;fraction&quot; yunits=&quot;fraction&quot;/&gt;
    &lt;size x=&quot;0&quot; y=&quot;0&quot; xunits=&quot;fraction&quot; yunits=&quot;fraction&quot;/&gt;
&lt;/ScreenOverlay&gt;</pre>


and i have googled and find out from the below link. the &lt;screenoverlay&gt; important attributes &lt;overlayXY&gt;,&lt;screenXY&gt; and &lt;rotationXY&gt; tags will not support in google maps.
https://developers.google.com/kml/documentation/kmlelementsinmaps</pre>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900