BeerFizz
asked on
Google Maps KML markers
I am generating a Google KML file with a number of points. For some set of these points I want to have markers which are say Red and for the others I want markers which are say Blue. For all the markers I want a unique label eg: 'A', 'B', 'C'.
I found a downloaded a large set of markers from the net, with different colors and labels.. eg all red A-Z, all blue, A-Z. so it is fairly easy to generate a url to select the correct marker eg .../markers/blue_markerB.p ng. and this is what I was in the process of doing. However, when the marker is displayed Google has distorted the shape (squat and wide).
So my question(s) are:
Why is Google doing this?
Can I fix it.?
Or:
Is there a set of compound/layered markers which Google supplies eg Blue+Letter that I can use and how are they used (code example please)?
Hope this make sense.
Attached is my test KLM code, a png of a distorted marker and a png of a marker as it should be.
Thanks
Phil
t2.png
I found a downloaded a large set of markers from the net, with different colors and labels.. eg all red A-Z, all blue, A-Z. so it is fairly easy to generate a url to select the correct marker eg .../markers/blue_markerB.p
So my question(s) are:
Why is Google doing this?
Can I fix it.?
Or:
Is there a set of compound/layered markers which Google supplies eg Blue+Letter that I can use and how are they used (code example please)?
Hope this make sense.
Attached is my test KLM code, a png of a distorted marker and a png of a marker as it should be.
Thanks
Phil
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>test.kml</name>
<Style id="marker1">
<IconStyle>
<scale>1.1</scale>
<Icon>
<href>http://97.85.145.94/joomla/CourseDetails/mapMarkers/green_MarkerA.png</href>
</Icon>
</IconStyle>
</Style>
<Style id="marker2">
<IconStyle>
<scale>1.5</scale>
<Icon>
<href>http://97.85.145.94/joomla/CourseDetails/mapMarkers/blue_MarkerA.png</href>
</Icon>
</IconStyle>
</Style>
<Placemark>
<name>Newport</name>
<description>Newport beach golf club</description>
<styleUrl>#marker1</styleUrl>
<Point>
<coordinates>-117.88117110729218,33.610348371131316,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Bar</name>
<description>Nice Bar</description>
<styleUrl>#marker2</styleUrl>
<Point>
<coordinates>-117.87686884403229,33.60939229911372,0</coordinates>
</Point>
</Placemark>
</Document>
</kml>
t1.pngt2.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER