18
votes
3answers
22k views

Loading a local .kml file using google maps?

I created a hello world program to load a local kml file (borrowed from google's docs): var ctaLayer = new google.maps.KmlLayer("http://localhost:8080/kml/cta.kml"); This does not work (nothing ...
15
votes
4answers
18k views

Best way to overlay an ESRI shapefile on google maps?

What is the best way to overlay a shapefile in Google Maps? After some reading suggests that, converting shapefile into KML and overlaying KML in Google map is an option. If that is the case, how do ...
8
votes
3answers
24k views

Android: how to load KML

could some one please tell me if there is a way to load kml file into the google map in android. thanks
4
votes
3answers
2k views

How to override KML colors in Google Map?

I am loading a KML file via Google Map's V3 API. The colors in the KML file are being used but I would like to override it with my own color. I actually want to use a solid color for the whole trace. ...
4
votes
1answer
236 views

Trigger click event on a Google Maps KML placemark

I have a map that is loading in dynamic external KML with placemarks defined like so: <Placemark id="MapZoneID_23443"> <name>Name Here</name> <description>Text ...
4
votes
1answer
179 views

How to tell KmlLayer about custom map projection?

I have a map with a custom projection (for maps.yandex.ru tiles) and default projection (Google and OSM tiles). When I add KmlLayer to map in the default projection it seems ok: But switching map to ...
3
votes
1answer
4k views

Google Maps zoom gets overriden, when using a kml file

How do I specify zoom level for google maps in a kml file or why is it that my zoom level gets over ridden when I load this file. My question is actually how do I control zoom of a map for the ...
3
votes
3answers
2k views

How do I highlight a country with the google maps api v3?

I'm trying to achieve an effect similar to this: Notice how France is brighter than the other countries. It has the 'focus'. I've been exploring the API and it looks like I'm supposed use ...
3
votes
2answers
2k views

Dynamically change colour of KML polygon in Google Maps API v3

I'm using Google Maps v3 API to load a KML layer and want to be able to change the colour of the KML from its default blue without having to edit the KML file itself. Is this possible using JavaScript ...
3
votes
1answer
773 views

KML Layers Cursor CSS - Google Maps API v3

I've run into a small problem with the semi-new KML Overlay functionality with Google Maps API v3, wherein while I am able to use "suppressInfoWindows: true;", the cursor still appears as though the ...
3
votes
0answers
454 views

Google Map KML layer placemark click event return ZERO_RESULTS

Attaching listener to KML layer var layer = new google.maps.KmlLayer('http://sites.google.com/site/kmlprototypes/kmls/temp.kml?dc_=' + Math.random(), ...
3
votes
1answer
616 views

Issues with KML Layers limit

I have loaded 6 kml layers via url to my website to be toggled off/on by checkboxes. I have recently notice though, that it will only allow me to show 4 kml's at a given time. When I select more ...
3
votes
1answer
2k views

How to add custom street names on Google Maps?

So you want to add custom street names or other labels on your Google Map? For example on this location. After learning current (3.6) google map js API you have these possible options: KmlLayer (not ...
2
votes
2answers
6k views

Access KML Markers in Google Maps

Is there any way to create a "sidebar" from a KML file when using the Google Maps API? I'm loading the markers on the map using something like this: var myMarkerLayer = new ...
2
votes
1answer
2k views

How to save map drawing state (Polygon, Ployline, Markers)

I want to enable drawing on Google Maps like (see this example) When user finish with drawings he will click on save button to save his drawings in Database or KML file, anything :) .. I do not know ...

1 2 3 4 5 14
15 30 50 per page