google-maps

Google maps api add marker strange behavior in IE8?

Hi, I was just playing around a bit with google maps and wanted to add a marker to the map after clicking somewhere. This works fine, except in IE8 (the locations don't show up where i click, but a bit to the left or the right.. can't see a pattern) This is the code: GEvent.addListener(map, "click", function(overlay, latln...

How to properly localize Google Map?

How to localize Google Map on my site? ...

Subgurim: clear all icons/markers/infowindows

hi, i've placed say 20 infowindows+markers+icons on my map. when the user pans to the right, i want to remove all existing infowindows+markers+icons on my map and paint the new ones. is there an easy way to do this? Michel ...

how to get country location on Google Map in iphone using Country name only?

Hi, In my iphone application i have integrated Google Map.I want to show the country location on Google map using only country Name Only.(Not needed to use its latitude and longitude).The input only will be the country name?(i.e India) to the google Map and Map will locate it with indicate pinpoint. Is it possible to locate the country...

Hybrid static/dynamic Google Map

Ever noticed that when you go to maps.google.com and do a search (say, car wash), it renders a lot of results (represented by small circles) and a few prominent ones (seen as regular-size pins)? Notice how quickly it does this? From what I can tell from analyzing this in Firebug, much of this is generated on the server and sent to the ...

When calculating trends, how do you account for low sample size?

I'm doing some work processing some statistics for home approvals in a given month. I'd like to be able to show trends - that is, which areas have seen a large relative increase or decrease since the last month(s). My first naive approach was to just calculate the percentage change between two months, but that has problems when the data...

Google Maps API - "road" distance between 2 points

Hey guys, I have a website where "near locations" are shown for each item, based on the latitude and longitude coordinates stored in a database. Problem is that this calculated distance is the air-line distance, which differs a lot ferom the actual driving distance. Google Maps does only have a JavaScript API for driving directions ...

Google maps: "my maps" with google maps api (JavaScript)

I want to put a google maps on our website, i know you can add custom markers with javascript onto your map. but why do that through code if you got my maps ? my co-workers can edit the public created my map easily, add / delete markers without any programming knowledge you can add that custom map my map to your site with an iframe But...

Using Google Map in iPhone App development - License Required or not ?

Hello, I need to integrate Google Map Api in to my iphone App. Do we need to get licence on using Google Map in our iPhone App development? Many thanks in advance. Kind Regards, Mahesh. ...

Stop drag of google map outside visual bounds

When you are pretty far zoomed out on a google map, you can drag it enough so that the map ends and becomes a blank gray color. The map seems to repeat seemlessly on the horizontal axis, but not vertically.I'm wondering if there is a way to prevent the map from being dragged when it reaches that gray area. Any ideas? ...

Is there a way to access the Bing Maps geocoding API via REST?

Is there a way to access the Bing Maps API via REST to obtain geocoding information from an address? This is something that's trivial to do with Google and Yahoo; what I'm looking for is functionality like this, from Yahoo: http://developer.yahoo.com/maps/rest/V1/geocode.html (Specifically, see the sample request URL on that page, but...

Show certain InfoWindow in Google Map API V3

Hello. I wrote the following code to display markers. There are 2 buttons which show Next or Previous Infowindow for markers. But problem is that InfoWindows are not shown using google.maps.event.trigger Can someone help me with this problem. Thank you. Here is code: <html> <head> <meta name="viewport" content="initial-scale=1.0, user-s...

Google maps one placemark instead of many when zooming out

hi there: I have a google map with several placemarks, when you zoom out on it at some point several placemarks that are close, show as one, in the domain of the app this is a serious problem. Is there anyway to show some sort of count or make obvious the fact that there are more than one placemark? Cheers ...

Android - offline, non-vector based, custom maps

For an application I am working on, I need to display custom raster image tiles (not vector based, probably from satellite imagery), and I need to do so offline. I would like to use the MapView, but I cannot see a way to tell it to use custom, offline map tiles instead of pulling down data from google's servers. I've seen a few alterna...

Which set of modules must I use to add a google map linked to an address in Drupal?

Which modules can I use to add a google map to a node with a address entered by a user, so that the location shows on the map? (i'm asking, because I tried a few and could never find one that worked straight off the bat) Am I allowed to just use google maps? Will the Google Map API work from my local machine, or will it only work once i...

Snap to nearest marker

Hi there , i am using GoogleMaps and i have 2 or more markers and they are draggable. I want to snap 2 markers if they are near and merge them into 1. is this possible ? Can someone give me pointers .. how i can realize that ? ...

Using JSON Data to Populate a Google Map with Database Objects

I'm revising this question after reading the resources mentioned in the original answers and working through implementing it. I'm using the google maps api to integrate a map into my Rails site. I have a markets model with the following columns: ID, name, address, lat, lng. On my markets/index view, I want to populate a map with a...

How to set a specific height for Google Maps infowindow?

I know the max width can be set with 'maxWidth', I wonder why isn't there a 'maxHeight' option. ...

Server side clusters of coordinates based on zoom level

Thanks to this answer I managed to come up with a temporary solution to my problem. However, with a list of 6000 points that grows everyday it's becoming slower and slower. I can't use a third party service* therefore I need to come up with my own solution. Here are my requirements: Clustering of the coordinates need to work with ...

How do I highlight markers on hover in Google Maps for a sortable table?

I have a table that I've made sortable using the jQuery plugin Tablesorter 2.0. On the same page, I have a Google Map that displays a marker for each item in the table. Now, I want to make it so that when a <tr> is hovered, the corresponding marker on the Google Map is highlighted. I also want to do the vice versa, where clicking on a ma...