• Resolved onorok

    (@onorok)


    I’m having problems displaying the get directions link within the balloon. I’m using the proper google api methods but the links fail to display.

    I was just curious, did you code the plugin to parse the complete .kml file or not? It will display the <description> tags, but it won’t display the <text> tags that the get directions api code relies on.

    Any help with this matter will be greatly appreciated!

    Thanks,
    Zack

    For Reference

    Website: https://www.zackandrews.com/?page_id=292

    <?xml version="1.0" encoding="UTF-8"?>
    <kml xmlns="https://earth.google.com/kml/2.2">
    <Document>
    	<name>flatsidepinnacle.kml</name>
    	<Style id="map">
    		<IconStyle>
    			<scale>0.5</scale>
    			<Icon>
    				<href>https://maps.google.com/mapfiles/kml/shapes/arrow.png</href>
    			</Icon>
    			<hotSpot x="32" y="1" xunits="pixels" yunits="pixels"/>
    		</IconStyle>
    		<BalloonStyle>
    			<displayMode>default</displayMode>
    			<text>
    				$[geDirections]
    			</text>
    		</BalloonStyle>
    
    	</Style>
    	<Placemark>
    		<name>Flatside Pinnacle</name>
    		<styleUrl>#map</styleUrl>
    		<Point>
    			<coordinates>-92.91034267538383,34.87367497259747,0</coordinates>
    		</Point>
    	</Placemark>
    </Document>
    </kml>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter onorok

    (@onorok)

    EDIT:

    I found a slight “hack” for this in order to get it to work. For those interested check out this site:

    https://tech.reumer.net/google-maps/test/kml-with-form.html

    Thanks,
    Zack

    No, this plugin doesn’t parse kml files to display elements on a map. It only parses kml files in some cases to find the best zoom level and view (look for coordinates to calculate these parameters). The display of kml element is in the responsibility of the Google Maps API GGeoXML Object that loads the KML file and makes an overlay to the map!

    Thread Starter onorok

    (@onorok)

    I figured as much, thank you very much for the reply dschuesae. You made a wonderful plugin and I’m very happy to have access to it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: XML Google Maps] Get Directions’ is closed to new replies.