Hello,
i have found a nice javascript (google-api), where i can make an
overlay on a map:
...
function initialize() {
if (GBrowserIsCompatible()) {
geoXml = new GGeoXml("http://mapgadgets.googlepages.com/cta.kml");
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(41.875696,-87.624207), 11);
map.addControl(new GLargeMapControl());
map.addOverlay(geoXml);
...
My question is, how can i use my kml file (on a sd card) istead of the
link in the GGeoXML object
geoXml = new GGeoXml("http://mapgadgets.googlepages.com/cta.kml");
My idea is to use:
....
HttpGet get = new HttpGet("A_HTML_FILE_WITH_HTMLGOOGLEAPI.html");
....client.execute(get);
In this html file i load the javascript. Must i append "?
param=THE_KML_FILE_IN_A_BUFFERED_READER_OBJECT_OR_SOMETHING_LIKE_THAT"
to get the data available?
Thanks,
Stefan
PS: I don't find a GGeoXml function in the "google api for android".
So i decide to use the "html google api". And i can search for a
direction between two point in the "html google-api"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---