135
votes
4answers
159k views

Google Maps JS API v3 - Simple Multiple Marker Example

Fairly new to the Google Maps Api. I've got an array of data that I want to cycle through and plot on a map. Seems fairly simple, but all the multi-marker tutorials I have found are quite complex. ...
151
votes
15answers
178k views

Google Maps API v3: How to remove all markers?

In Google Maps API v2, if I wanted to remove all the map markers, I could simply do: map.clearOverlays(); How do I do this in Google Maps API v3? Looking at the Reference API, it's unclear to me.
23
votes
2answers
13k views

How to make cross-domain AJAX calls to Google Maps API?

I'm trying to make a jQuery $.getJSON call to the Google Maps Geocoding webservice, but this doesn't work because of cross-domain security issues. I haven't been able to figure it out online, but ...
47
votes
13answers
55k views

Problems with Google Maps API v3 + jQuery UI Tabs

There are a number of problems, which seem to be fairly well-known, when using the Google Maps API to render a map within a jQuery UI tab. I've seen SO questions posted about similar issues (here and ...
51
votes
16answers
12k views

Alternatives to google maps api

google maps api is great for developing location based services for mobile phones. But for some reason the use of it is restricted for me in a special project. E.g. if your project is in conflict ...
13
votes
5answers
16k views

How to call fromLatLngToDivPixel in Google Maps API V3?

I know that method exists and is documented, but I don't know how to get an MapCanvasProjection object.
108
votes
5answers
121k views

Google Map API v3 — set bounds and center

I've recently switched to Google Maps API V3. I'm working of a simple example which plots markers from an array, however I do not know how to center and zoom automatically with respect to the markers. ...
28
votes
3answers
22k views

Google Maps Api v3 - find nearest markers

When i click on map, which will be best way to find nearest marker or markers? is there some functions in api that will help me to do that? it's google map api v3.
24
votes
7answers
12k views

How do I limit panning in Google maps API V3?

In V2 there was a way to limit panning/dragging so the map stays within certain bounds. How is that done in V3? Let's say I want the users to only look at Europe. I've already limited the zoom, but ...
0
votes
2answers
2k views

Google Maps V3: Draw German State Polygons?

I need to draw colored polygons over certain German states. What's the best way (or easiest, fastest, any really...) to do this? Do I need to somehow get all the outlines as lat/lon points and draw a ...
20
votes
6answers
7k views

Google Maps API Version difference

I'm trying to show route between two places, I want to used Google Places API V3 for route steps between two points. Before I was using Old Google Maps API, and following request gives perfect ...
17
votes
6answers
22k views

Google Maps v3 - limit viewable area and zoom level

is it possible to limit Google map v3 to a certain area? I want to allow displaying only some area (e.g. a country) and disallow the user to slide elsewhere. Also I want to restrict the zoom level - ...
9
votes
8answers
25k views

How to access Google Maps API v3 marker's DIV and its pixel position?

Instead of Google Maps API's default info window, I'm going to use other jQuery tooltip plugin over marker. So I need to get marker's DIV and its pixel position. But couldn't get it because there are ...
21
votes
2answers
33k views

fitbounds() in Google maps api V3 does not fit bounds

I'm using the geocoder from Google API v3 to display a map of a country. I get the recommended viewport for the country but when I want to fit the map to this viewport, it does not work (see the ...
26
votes
3answers
46k views

Google Maps API v3: How do I dynamically change the marker icon?

Using Google Maps API v3, how do I pro grammatically change the marker icon? What I would like to do is, when someone hovers over a link - to have the corresponding marker icon on the map change ...

1 2 3 4 5 33
15 30 50 per page