google-maps

how to change this demo work good at chrome and safari ..

This is a demo dragging on google maps v3, but ,it can't work good at chrome and safari , So , how to change it ? thanks ...

How to add the marker on google map?

We're trying to implement the similar to google maps "my maps" behaviour with some customization. The problem we're struggling against is to put the marker on the map in the similar manner as google does. Thats the procedure is the following one should click on the "add new marker icon" then drag it until the point of interest with ...

Google Maps v3: Cannot access global variables

Not sure what framework (if any) Google Maps v3 is built on top of but I'm having issues trying to access global variables within the following function. var geocoder = new google.maps.Geocoder(); geocoder.geocode({ 'address': google_addresses_array[i][1] }, function(results, status) { if (status == google.maps.GeocoderStatus.OK) ...

Detect address from UITextView and show it map on tap

There is an option in UITextView properties to detect address from the the text view text. However I am not able to do that. The text view is not in editable mode. Do you know how to detect address from text view? Is there a format that the address must have to be detected from the text view? ...

Problem with connecting to google map url to fetch lattitude and longitude for particular location

I have the following code to fetch lattitude and longitude for given address but the permission to google url is denied . function getlatlng(address, callback) { var addressval = address; var address; var url; var googleUrl = "http://maps.google.com/maps/api/geocode/js...

Creating specialized maps with jQuery and/or Google Maps API

I need to create a range-graded circle proportional map, i.e., a map that has circles overlaying a map the size of which circles indicates the proportional density of what I'm trying to measure. This is best understood by example, and can be seen here: http://www.d.umn.edu/geog/cartfolder/HTML%20Pages/Map-Types.htm. I've tried poking a...

How to change MapTypeid in Google Maps API v3?

I need to change the map type from RoadMap to Hybrid when a user clicks on a marker (it automatically zoom's and center's on it already) I can't find anything on Google's API documentation for 3.2 on how to do that. Any help would be appreciated! ...

Is it possible to catch exceptions thrown in a JavaScript async callback?

Is there a way to catch exceptions in JavaScript callbacks? Is it even possible? Uncaught Error: Invalid value for property <address> Here is the jsfiddle: http://jsfiddle.net/kjy112/yQhhy/ try { // this will cause an exception ing google.maps.Geocoder().geocode() // since it expects a string. var zipcode = 30045; v...

How to show a message in the Google Maps?

I'm trying Google Maps JavaScript API v2. I want to show a message in the map. No matter how I drag or zoom the map, the message will keep in the same place. How can I do that? Any help is appreciated. ...

Maps on multiple pages. Create individual JS or a more efficient route?

I am utilizing the Google maps api v3 (Javascript). I have made a code which displays various markers on the map, and finds the distance between the 'home' marker and each of the others. It works perfectly. On another page I need a map, 2 markers, and the route plotted between the two points. I can/have got this code. I am using CodeI...

Google Maps API v3 marker setPosition not working in Safari (sencha touch)

I am using Sencha Touch to develop a mobile version of a Bus Tracker for Boston University. The problem I a running into is that the method setPosition() for a google.maps.Marker is not rendering the position change in Safari or any Mobile browser. The code set up is as follows: I initialize an empty markers array I initialize the map...

Linkify custom location in textView?

I have a TextView with location data that I want to Linkify. When link will be clicked an Intent should be fired that will start Maps. How should I achieve this effect? UPDATE: I have something like "My street 9, My city". Now I want to have all this text to appear like a link and have intent fired with URI: geo:0,0?q=My+street+9,+My+c...

Google Maps API v2 load() event not firing

Hello, I'm improving the Google Maps API V2 integration in our web app and I'd like my main page to know when Google Maps has finished loading everything so I can then set some markers. I notice there's a load() event but I can never seem to get it fire. Here's the code I'm using if( GBrowserIsCompatible() ) { map = new...

Strip off street names from Google Maps by ActionScript 3

I am working on image processing on maps from Google Maps. How can I use ActionScript 3 to strip off the street names? Since the street name fonts are anti-aliased, a lot variances of colors are used. I can replace colors one by one, but are there any efficient methods? I have read a related method like: public function threshold(sou...

Google map not firing nested listener

Using Google Maps v3, I'm trying to do the following: Create a new bounds object and fit the map to this. Wait 400ms before panning to one of the LatLngs that forms this bounds object. Wait 400ms before zooming to a new level on this new centre. In doing this I have no problem with the first 2 points above. However, I can't get the l...

GoogleMaps v3 API Create only 1 marker on click

I am successfully creating a marker on click however, using the following code, I get a new marker with every click, I only ever want one marker added and if someone clicks more than once I would like it to move the existing marker to the new position Can anyone help here is the code function placeMarker(location) { var clicked...

Google Maps - using geocoder to get long/lat with javascript

I'm trying to get longitude and latitude values from the google maps api with an address, however it doesn't seem to be returning any value. Is there a problem with my syntax? var point = GClientGeocoder.getLatLng('1600 Pennsylvania Avenue NW Washington, DC 20500'); alert(point); ...

Can you overlay a google map route on a custom background image?

What I'd like to do is overlay the route only on a custom background image. The background image is a png of olde-world style map, but I want real routes overlayed on top. The routes change quite a lot, so I don't what do have to do some photoshop work to generate maps each time a route changes. Is this possible? (also, I'd like the ...

Google Maps not showing

Hello. I've been having a problem with Google maps API v.3. I have my canvas declared like <div id="map_canvas" style="width: 50%; height: 50%; margin-left: auto; margin-right: auto"> and in my Javascript function var myOptions = { zoom: 8, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var mydiv=docum...

what is your favorite third party API for Google maps V3 ??? and why ???

Hi , I need from you to share your experience with any third party API for Google Maps V3 and your rating please share information like name , url , tech used (serverside , clientside ) , price or license , performance , any thing you would like to add for example I like: 1-markermanager 2-http://google-maps-utility-library-v3....