display label next to icon in Google Maps KML -


i using kml google maps api. kml used display mile markers on interstates (see screenshot):

enter image description here

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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -