google-maps

Google Maps v3, polyline mouse events

Is it possible to detect when the mouse has entered and exited a polyline region in Google Maps v3? As a particular use-case, I would like to change the color of a polyline when then mouse is hovering over it. Polylines allow registration of a "mousemove" event, but it doesn't seem to allow notification of mouse over/out events. This s...

Access Individual Google Maps Elements (Distance, Time, Directions)

How do you access individual elements in Google Maps? Is there a way to do this through the API or will I have to parse the DOM and pull the elements (e.g., distance, time, directions) separately? Version 2 or 3 of the API is fine. Example: <div jstcache="6" style="text-align: right; padding-bottom: 0.3em;" jseval="this.innerHTML = $R...

Javascript custom "event" listener, using prototype implementation OOP

I have been trying to wrap my head around this one, and a lot of tutorials and sites have been suggesting the creation of a separate event object, which seems to be a bit of overkill for just implementing one function to happen at some point in the object. Basically I want to have a custom "onComplete" event to fire when certain methods...

Travel Time Between Zip codes

Hi All Hope someone can advice but looking for an API service that can provide traveling times between 2 zip codes. These would be driving time. Cant seem to find a service for such a thing. Can anyone help provide links to any good services they have found? ...

Google MAP HTTP request or API

Hello All, I would like to get driving time information from one location to another using google maps. I have found another fantastic post on this site here Although the above link is based on geo codes I woud like to use zip codes if possible. But I really like to get the time via a php call as this time is being worked out in the ...

Drag n Drop a Marker onto Another Overlay in Google Maps/Flex

I am trying to put together some code that allows the use to drag a marker onto a polyline in the Flex version of Google Maps. This is not so easy. I am close, but not there yet. Here's what I've tried so far: Attempt 1 On MOUSE_DOWN of a marker, I save a reference to the marker, then whenever the pointer moves over the map, I move the...

How would I position a marker at the bottom of the map in Google Maps v2?

I have a webpage that finds a store by postcode or name. I have just released an update to it so that contact details display in an info window coming from the marker. Due to the small size of the info window, after centering to the marker, the map pans down until it can fit the marker and info window in leaving the marker near the bot...

Find distance between two cities in Excel using Google Maps API

I would like a table of the following form: Point A Point B Mileage Los Angeles Miami 292100 Palo Alto San Francisco 90 I was hoping to use Google Maps or some other geo api to generate mileage based on input cities dynamically. Any ideas on how to do this? UPDATE It looks like I could use ...

Google Maps API: Trouble with GDirections object literals

I am successfully calling GDirections to get a map with directions between a point A and point B that I have specified. However, I can't seem to get certain return values. calculateDistanceFromRoute.js: var map = new GMap2(document.getElementById("map_canvas")); function initialize() { if (GBrowserIsCompatible()) { var m...

Google Maps API Reverse Lookup Address Details Accuracy

Hi, I am using Google Maps API for reverse lookup of an address, specifically Country, City and ZIP code. The problem I have is that with geocoder when you input a specific lat lng you get a range of results based on the address detail accuracy. For example if you click on the street you get address detail accuracy of 8 and the address l...

getting latitude and longitute information from a web visitor

TO use google maps it seems you have to have the lat and long for a visitor to plot them on a map. Are there any free libraries that will give you this information given a IP address? ...

Converting long/lat to pixel x/y, given a zoom-level

I'm trying to develop a page in ASP.NET that will act as a tile-server for a Google Map It will pull a collection of latitude/longitude points from the database, then render them as small red dots on a transparent background, given a zoom-level (default: 15). It will then return the result as a GIF-type image. Have any algorithms or l...

Google Maps API, problem creating mutliple markers with infowindows via loop

The problem I am having with the below code is that the info window only pops up on the last iterated marker, even when i click on the first marker the infowindow on the last marker is opened? $(document).ready(function(){ if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); map....

Create google maps trip from a .NET win-app?

Hello. I have a win-application that needs to reproduce a trip for a trucker according to a list of addresses. I was doubting if it's possible to open a browser and transmit the addresses to the google-maps website so it creates the journey for me? If the answer is no, I would you suggest to do it, if I don't have any website, I want ...

Locating GPS coordinates in an automated fashion through Google Maps

At http://maps.google.com, if you search for something like "Deschutes River, Oregon", you get an automatic GPS marker coordinate. Sometimes you get several different options on the side and I'm trying to figure out if you can obtain these markers automatically through the API or some other methods. I was just unable to find anything in ...

Using the SharpMap library to generate a Google Maps overlay

I wish to dynamically generate a Google Maps overlay, that will consist of a single transparent GIF/PNG image with multiple dots on various locations. There will be a large quantity of dots and if I use normal markers, the performance will be unacceptable. I came across the SharpMap library and it looks like an excellent, comprehensive...

google maps, cellid to location

According to this sample: http://www.codeproject.com/KB/mobile/DeepCast.aspx It's possible to request a gps coordinate (longitude & latitude) including range when sending cellid information (MCC, MNC, towerid, etc) Can someone tell me the actual parameter to request/post to this address? http://www.google.com/glm/mmap It could be so...

how to show google maps using uiwebview with zooming in uiwebview?

as we all know that driving direction is not supported in mapkit.so i think i can show driving direction in webview.i am showing google maps in uiwebview,but it shows the whole site i just want to show only map part with some zoom so that it looks like original maps application of iphone.also i don't know if this breaks the apple's Human...

How to run JavaScript code in sequence?

I'm having a JavaScript issue where I need a function to run and complete before another function is run. Here's the code I need to run and complete first. As you can see, I'm looping through all address input fields in the form and geocoding them through the Google Maps API. $('#form input:text.address').each(function() { var ad...

Same address Google Maps - any ideas how to facilitate?

So I am trying to think of a way to facilitate two things. It may end up being a two step process in the end but I was looking for input. The first thing I need to do is accommodate locations with the same address. The two scenarios that come to mind are businesses that share a location and apartment buildings. The second thing I nee...