google-maps

Load google maps v3 dynamically with ajax

When i try to load google maps v3 with ajax the result is: <script src="http://maps.gstatic.com/intl/en_us/mapfiles/api-3/2/8a/main.js" type="text/javascript"></script> in the source code, i suppose that writes with javascript document.write(); how i can do this without iframe? thanks. ...

Hide a circle along with the binded marker

Hi! I'm working with Google Maps v3 and I use the MarkerManager to hide the markers on a certain zoom level. I bind circle objects to these markers. Anyway, they aren't hided when the markers are. How can I bind the circles to hide with the markers? The binding: var marker = new google.maps.Marker({ position: new google.maps.LatLng(l...

Reverse Geocoding all addresses within a radius

Hi, I'm working with the iPhone SDK and am trying to gather and store a list of all addresses within a given radius (the radius will range from .25 to 19.75 miles). understandably the larger radius would produce a large amount of results, but for now I'd like to at least be able to do it for a mile or so. The end result would be to have...

Changing markers icons in Google Maps application

Is there an easy way to change the marker when embeding a googlemap with Jquery/javascript? EDIT bonus Question Is there a way to use an address instead of LatLng? ...

Is it possible to calculate distance by land transport between two UK postcodes using Google Maps API V3?

Hi all, Is it possible to calculate distance by land transport between two UK postcodes using Google Maps API V3? Has anyone accomplished this? Thank You ...

Map Click and drawing item

I have been lookling this but havent found a concrete example is there a way to click a specific point on a Map and then draw a overlayitem it? ...

Google map overlay update technique

I have a circle on the a map that I need to update, here is one way to do it: circleopts.radius=100*distance; // delete old circle overlay circle.setMap(null); // create new circle overlay circle = new google.maps.Circle(circleopts); // display new circle overlay circle.setMap(map); For some reason I don't find this very elegant. Is t...

Determine longitudes and latitudes within a range

I have locations in my database. A location has the attributes latitude and longitude (taken from google maps, example: 48.809591). Is there any query that could help me retrieve the locations within a range of another location? Example: I have the location A with latitude = 48.809591, and longitude = 2.124009 and want to retrieve all l...

How do I display the location of the user on a Google Map in HTML5?

I'm trying to put a Google map in my page and make it so that when the page loads the map will display exactly the location of the user. In order to do so, I've taken the google maps API code and inserted it into my HTML5 page. At first the browser did ask for permission to share my location but it isn't actually showing this location on...

ASP.NET & Google Maps API Error Code "620"on shared hosting

We have a Map It feature on a Real Estate Website and its on a Shared Host, the feature basically shows you the location of a property of works fine for a few hours a day but it stops working later in the day because of error Code "620" for the map request from Google maps API KEY. we need this issue fix immediately. Sample could be fo...

Display in range addresses within x miles of a geo location with google maps

In my database I have a list of places and for each I have a street name and number, postcode, city and county. Some of them have a latitude and longitude location. And I have the geo location of the city centre for example. I would like to display only the places that are within X miles of the city centre on a google map. Incase this ...

calcute angle between two Latitude/Longitude points

Is there a way to calculate angle between two Latitude/Longitude points? What I am trying to achieve is to know where the user is heading. For example, user is heading North, South,.... South-East, etc. But I have only two points (Lng/Ltd) Thx ...

Google Maps Circle Overlay and Vincenty Formula

Hi - I'm using the Circle overlay as part of the V3 of the Google Maps Javascript API (i.e., see below - we have a subsequent call that actually sets radius/etc.) to display goe-spatial locations in our application. var circle = new google.maps.Circle({ fillColor: lCircleColor, strokeWeight: 2 }); We also have a ...

google maps markers

How do do i add them to my google map ? I've added the marker manager <script src="http://gmaps-utility-library.googlecode.com/svn/trunk/markermanager/release/src/markermanager.js"&gt;&lt;/script&gt; And used the same syntax as in the documentation but they don't show up. The coordinates are correct . Can someone please dumb it down...

Creating a Interface for Insering Google Maps

I am trying to create a site that has option to add maps to the site using google maps api. I found hundreds of tutorial and blog posts on embeding map in the site. But what I actually want is a way to give the user choose a place on the map and add marker. Then get the co-ordinates of the marker and store it in the database of retrievin...

Unable to mark more than one coordinate in Google Maps

Below is the code listed to set markers in Google Maps. But only one marker is being set whereas four markers should be set. What is wrong with this code? <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0p...

Free for commercial use google-maps equivalent to do the following?

I'm looking for a mapping API something which has similar functionality to Google-maps but which perhaps has something along the lines of the Apache / MIT license. I basically want to plot points on the map. Does such a thing exist? If so are there any guides to plotting points on this map API? ...

How to get Client location using Google Maps API v3?

How do you get Client location using Google Maps API v3? I tried the following code but kept getting the "google.loader.ClientLocation is null or not an object" error. Any ideas why ?? if (google.loader.ClientLocation) { alert(google.loader.ClientLocation.latitude+" "+google.loader.ClientLocation.longitude); } Than...

Google Maps Javascript API - Reposition Map via html Link

Hello guys, I have created a very basic google map using the javascript API and google's tutorials. I would love to be able to create hyperlinks on my page that would recenter the map at certain cities around the world - eg London, Paris, Rome.. I can't for the life of me figure out how to do this (I'm quite new to all of this, trying...

Which listener method do I have to override/declare to put a mark in my googlemap activity when I touch the map with my finger?

Which method do I have to override to put a mark in my Google Map activity when I touch the map with my finger? I tried with this in the oncreate method (like a button onclickslistener) but it doesn't work: this.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { //// Here todo the code for put...