google-maps-api-3

KML to SqlGeography

Anyone have a function or DLL that will convert KML to SqlGeography (SQLServer DataType)? I'll write it out myself if i have to, but i'm surprised i can't find one out there. ...

Android: how to load KML

Hello, could some one please tell me if there is a way to load kml file into the google map in android. thanks ...

Gmap v3 and js not playing nice

Hello, first of all here is my code in question: var geocoder; var map; geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { zoom: 18, center: latlng, mapTypeId: google.maps.MapTypeId.HYBRID } map = new google.maps.Map(documen...

Setting up Marker Clusterer markers with info windows

Hi guys. I'm having an issue with setting up the info windows for multiple markers in google map api. Basically, Im getting the latitudes and longitudes and everything else from external Json file. I'm parsing it correctly because markers are showing on the map. However, when I'm trying to add an info window for each one of them it only...

Google Maps API 3 - searching the map like on maps.google.com

Hi! I appear to be missing something here so I'm hoping someone can point at the place I should be looking. I have a google map on my HTML page that I am manipulating to load markers and add markers on click, now I want a search box so people can search for the general area before they click to add a location. I am reading the Google M...

Is it possible to detect ctrl key state on dblclick event

I am using Google maps API version 3. I would like my double click event handler to work as follows: google.maps.event.addListener(map, 'dblclick', function(e) { if (/* ctrl is pressed */) { doSomething(e) } else { doSomethingElse(e) } }); It looks the the event handler only provides a MouseEvent which does not contain ...

google maps javascript api v3 - overlay behind the roads

Is it possible to set overlays like polygons and circles behind the roads? (I think this would be possible only if google sends each tile in two sets one with just background and one with just the roads with full transparency. I am not sure if google does that. From the api, I could see only ZIndex, which is relative to other overlay...

how to customize the basic infowindow with tabs displayed using GInfoWindowTab on google map

I have the following function to display the infowindow with tabs on google map using GInfoWindowTab ,the default infowindow is displayed with two tabs ,my question is how can i change the size ,background color and styles of the infowindow and can i add videos into one of the tab in infowindow. function createMarker(point, name, addre...

how to add tabs to infowindow which uses extInfoWindows for google map

I have the following code to display the info window on the google map when marker is clicked how can i add tabs to the infowindows which is using extinfowindows ,can anyone help to trace out the problem. function createMarker(point, name, address, imagepath) { var marker = new GMarker(point, gicons[imagepath]); var html1 = '<sp...

Google Maps API 3 - Search within a specific area (eg Wales, Cornwall, Loire Valley)

Hi I have a list of lat longs stored that have been selected from a google map that I use to place pointers. I want to only place the pointers in a specific area chosen by the user eg Wales, Cornwall, Loire Valley. Is there a way of saying something like (in Pseudo Code) If MyLatlong IS IN LoireValley AddMarker to Map Will google ...

'myFunction is not a function', JS & Google Maps v 3?

Hello I cannot figure out why I get this error. I've got a list with inputs which values contain lat/long/name/address. Printing the markers on the map works fine, using the infowin workED fine, till I realized that it only openend the same info in all windows. Soo, obviously I needed to attach this (the marker i just clicked) to the ...

Update Google Maps Javascript objects every 1 min using fresh data from database using C#??

Hi all! I'm trying to update a Google Map (API V3) with markers using my friends locations stored in a database. I want to refresh the map every minute or so... kind of like google latitude which shows where yours friends are on the map. Here is SOME of my Javascript: Please note that all i need to do is get a list of locations from the...

Gmaps v3 Personalize Maps controls changing background img

Hi, Can personalize maps controls changing the backgound image, keep dimentions using api or code? Thanks see this link text? ...

Gmaps v3 change close img in InfoWindow and others styles

Hi, It's possible to change the default close img of infoWindows ? More, can change de complete infoWindows design changing the main style ? infoWindow Thanks. ...

google maps api v3 - nearest streetview

When streetview is not available for a certain location, I would like to find the nearest possible location with streetview? The only way I could think of is. radius = 0; noOfPoints = 3; while(radius < 10 miles){ radius = radius + 0.2 miles points = calculate 4 * noOfPoints at this radius loop(points) { if(streetview visibile f...

displaying nearby schools and airports in google maps android

I want to display the near by schools and airports and their related information in the google maps. I have considered using google places api but the registration process for Adsense and Google Places API will take long time. So, is there any other alternative to my problem...??? Any suggestions are welcome !!! ...

Gmaps v3 Change style of MapTypeControlStyle DROPDOWN_MENU

Hi, Can someone help me to change the style of MapTypeControl DROPDOWN_MENU without needing to build a complete new one. I searching to preserve localisations using the Default dropdown in place to build my own not localised when load. Thanks. ...

Add HTML class/ID to Google Maps Marker (API V3)

Hello, How can I add a class or ID to a Google Maps API V3 marker? I want to be able to access the markers using jQuery. EDIT: Hi clarkf, thanks for the response. Using Firebug I'm not able to see those classes when inspecting my map but I did notice there are two divs. One for the icon and one for the button. What I am trying to do i...

Google Maps API v3 Geocoder.geocode() argument "location" not works

There is "location" property in GeocoderRequest object, that defines "LatLng about which to search. Optional.", I'm trying to use it, but it does not work: geocoder.geocode( { address: control.value, location: new google.maps.LatLng(59.938531, 30.313497)}, function(results, status) {....}) For example, when I'm searching for some addre...

Distance between two points on Moon and Mars.

How can I get the distance between two google.maps.LatLng points using the Mars/Moon tileset? Python/Javascript preferred, but any language would do just fine. ...