google-maps

Google Maps API - Finding Waypoint That Caused Error

We have been developing an ASP.NET application that works with the Google Maps API to assist in logistics and planning for a small shipping company in our area. One of the features is for the company to input a list of customers and the system will package up all the customer addresses as a series of waypoints, send it off to Google, and...

What should the google map api key be?

If I have this URL http://domain.com/test3/eu/flickr-map/ What url do I use to generate the api key. I have put my code into production and what ever I do I can't seem to get an API key to work. Please help. ...

Most Efficient/Elegant Address Validation

I made this small location class so that I can better handle address information which I am going to be sending off in requests to the Google Maps API. One thing I have left to do is some validation to make sure that the address has enough information to return a result back. For the application, the level of accuracy should be as loos...

Custom Route for GDirections Google Maps

Is it possible to create a custom route for GDirections to walk around? Like it does for roads etc. If I have 10 way points, and there is a building in the way, if I just walk from waypoint 1 to waypoint 2, it will walk straight through the building. Is there a way to tell it to walk on a custom pre-defined route? I was thinking mayb...

Django: want to use loop.counter to assign letter for Google Maps marker

I've got a variable number of items, somewhere between 0 and 20. I'd like to list these with Google Static Maps, showing a little "a" for the first one, a "b" for the second one and so on. I'm a newbie using Google App Engine so I'm constrained to 0.96 (unless I use various patches, which I don't want to do. Because I'm a newbie.) &m...

Google Maps Geocoding problem

Hi. I am playing around with Google Maps for the first time. And I am struggling to extact some information about the location where the marker is. I have set up an example for you to see. The problem happens when I drag the A-node, the getGeocode() returns undefined? I need to extract zip-code, city, and address from the node when I ...

Google Maps - Add two markers (directions)

Hi forum. Playing around with Google Maps these days, with some directions. I have a map that gets the directions and address (reverse-geocoding) when dragging and dropping the markers. If there is two nodes on the map (http://dev.korebogen.dk/gmap/) the script is working fine (click set directions) - but I need to add a click event s...

Google Maps - Thousands of markers - JSON

In the following example the markers are loaded from a JSON. If there are 20,000 markers the JSON is going to be quite big. Is there any way to send different JSON files according to zoom level instead of sending one huge array? http://gmaps-utility-library.googlecode.com/svn/trunk/markermanager/release/examples/weather_map.html ...

Server Side Google Markers Clustering - Python/Django

After experimenting with client side approach to clustering large numbers of Google markers I decided that it won't be possible for my project (social network with 28,000+ users). Are there any examples of clustering the coordinates on the server side - preferably in Python/Django? The way I would like this to work is to gradually inde...

Snap to nearest street

Hi. You guys have been helping out solving some of my problems with a Google Map lately, and thank you for that. I am almost done with this - only one problem is left. When I place the first marker on the map, it snaps to the nearest street (which is fine!) but when I drag the first marker to another place, directions suddenly mess up....

Slow performance from MapServer

I'm using mapserver to create a map that will be displayed with the google map api. I'm encountering performances issues. My maps are all in shapefile format. I run tests to get time to render maps. When rendering a map with the shp2img tool, using command line shp2img -i gif -m C:\myfolder\mymapfile.map -o C:\myfolder\test.gif -all_...

GInfoWindow maxContent dependent on the currently selected tab

I'm using Google Maps API to display a map and some markers on it. When the user clicks a marker, I use the openInfoWindowTabsHtml of my GMap2 object to display the little balloon, with tabs. I also pass in a maxContent to openInfoWindowTabsHtml, so the baloon becomes maximizable. Now my problem is, I would like the maximized content to...

How to loop through Google Map coordinates?

I'm stuck trying to loop through this array of GPS coordinates that puts pins on the google map. Here is my code: http://pastie.org/466369 The problem is on line 27-36. If I change it to the following, it will place 1 pin on that exact location, but I want it to loop through the array so I can add multiple pins: //var markers = []; ...

Google Maps zoomOut-Pan-zoomIn animation

I'm wondering how I get a smooth zoom in animation with the Google Maps API. I have 2 points, one in, let say China, and one in France. When I'm zoomed in on China, and click the button France. I want it to gradually zoom out smooth, one zoom level at the time. When it's zoomed out it should pan to the new location, and then zoom in on ...

Need help Reverse Geocoding to append message to GLatLng coordinate.

My code: http://jsbin.com/epuxu With help from SO, I managed to get addresses geocoded and their according pins placed on the map. The problem is that I can't select the coordinates in order to append a #message div to it on the map because I don't have the coordinates anymore. I suspect I'm doing something wrong in this section: /* M...

How do I implement google maps yelp.com style?

I have multiple locations (20+ per page) that need to be mapped on a single map. I would like to click on a link for the location that is not dynamically generated (for SEO purposes) that would open the info window for the respective marker on the map. Behavior should mimic http://maptheburg.com/ - but this map has the sidebar links dy...

Why is my google map api not displaying balloons properly?

Hi all! Here's the link: www.mchenry.edu/maps/google.asp Why won't the location balloon display correctly? Also, the pop-up info box is wonky too. Is it something in the CSS? Finally, I've received not a few "google server rejects your api key" yada yada. I've changed the key twice, with little luck. Hopefully it will work for you. Th...

Draw radius around a point in Google map

I'm using the Google Maps API and have added markers. Now I want to add a 10 mile radius around each marker, meaning a circle that behaves appropriately while zooming. I have no idea how to do that and it seems it's not something common. I found one example that looks good, and you can have a look at Google Latitude, too. There they use...

Virtual Earth or Google Maps

Simple question, the answer may not be... I'm going to be developing a web app (ASP.NET MVC) for a client. They have asked me for an opinion on whether to use Google Maps or Virtual Earth for providing a mapping solution. Which would you go for and why? Or are there others you can recommend? What else do you need to know? Street vie...

Google Maps Trouble: Closures & Passing By Reference

Hi all, I'm having some Google Maps/Javascript problems. I think I know what the trouble is but just don't know a way round it. An example of my problem is here. Whatever marker you click on, the second shows up. I'm obviously passing the wrong info into my event listener but I just can't seem to get the code right. Here's a cut do...