display label next to icon in Google Maps KML -
i using kml google maps api. kml used display mile markers on interstates (see screenshot):
a snippet of kml:
<?xml version="1.0" encoding="utf-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <document> <style id="randomlabelcolor"> <labelstyle> <color>ff0000cc</color> <colormode>random</colormode> <scale>1.5</scale> </labelstyle> </style> <placemark> <name>17</name> <styleurl>#randomlabelcolor</styleurl> <description>i-684 mm northbound: 17</description> <style> <iconstyle> <icon> <href>http://www.xxxx.com/images/mapicons/milemarker.png</href> </icon> </iconstyle> </style> <point> <coordinates>-73.67661,41.25393</coordinates> </point> </placemark> </document> </kml>
i realize clicking mile marker icon display callout name , description. possible have label drawn on map next icon? put numeric mile marker on map (e.g. 17)
or instead of kml need use javascript , create markers?
i've been looking answer same question. going on google maps api "kml , georss layers" guide noticed <labelstyle>
element not supported.
Comments
Post a Comment