On Apr 29, 8:19 am, Satan <[email protected]> wrote:
> Hi,
>
> is possible parse a kml in var string and show with javascript in a
> google maps ?. I found a method in ge (google earth) to parse the kml,
> but don't found in google Masp.
>
> The GE's code is:
>
> addKmlFromString(   '<?xml version="1.0" encoding="UTF-8"?>' +   '<kml
> xmlns="http://www.opengis.net/kml/2.2";>' +   '  <Placemark>' +   '
> <name>Test Placemark</name>' +   '    <Point>' +   '
> <coordinates>' +   '        -122,37' +   '      </coordinates>' +
> '    </Point>' +   '  </Placemark>' +   '</kml>');
>
> var kmlObject = ge.parseKml(kmlString);
> ge.getFeatures().appendChild(kmlObject);
>
> I need the same to google Maps.

I can use a modified version of geoxml3 to do that in the Google Maps
Javascript API v3. Not sure if that helps you or not.

  -- Larry

>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to