google-maps-api-3

Gmaps v3 remove and dispose MVCObject

Hi, What is the better way to remove and dispose one MVCObject including unbinds and clearing all events and markers ?. I have tried clearing markers and unbindAll() but the object is not removed of the map. Try with this sample Thanks. ...

620: Too many queries using Google Maps API

I'm using the Google Maps Javascript API V3 to reverse-geocode a lot of locations (~100) on a page. After about 10 or so, I start getting a 620 error: too many queries. What's a good way to delay the requests and ensure that they all get completed given that they're asynchronous? EDIT: Here's what I have so far. It completes all the re...

Google maps api styled map with satellite water

I am using google maps API V3 to create a styled map where I am using custom colors. I am wondering if it is possible to use the satellite image of the water while using a custom style on the land. I.e. I'd like the water to be the satellite image while the land will be a custom solid color. Right now I can give the land and the water ...

Google maps Info Window Overlay content just like that in maps.goole.com

I want have the info window content for a marker just a s below My code so far is loadEmbeddedMap : function() { var script = document.createElement("script"); script.type = "text/javascript"; script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=initEmbeddedMap"; document.body.ap...

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. ...

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...

Using Google maps API v3 how do I get LatLng with a given address?

If a user inputs an address, I want to convert to the equivalent LatLng. I've read the documentation, and I think I can use the Geocoder class to do this, but can't figure out how to implement it. Thanks for any help! ...

Custom Tile Layer Problem

Hi,I'm currently implementing logic on custom tile layers via OpenLayers function getTiles() { var res = this.map.getResolution(); var x = Math.round((bounds.left - this.maxExtent.left) / (res * this.tileSize.w)); var y = Math.round((this.maxExtent.top - bounds.top) / (res * this.tileSize.h)); var z = this.map.getZoom();...

Remove Pan control in Google Maps API V3

Is there any way to remove the circular panning navigation control but keep the zoom control in the Google Maps V3 API? I've tried forcing it offscreen with jQuery but every time the map is updated it comes back. Any ideas? Thanks! ...

InfoWindow closeclick event in GoogleMaps V3 being fired too soon?

Hi, I am noticing that the closeclick event on InfoWindow is being called prior to InfoWindow display in Google Maps V3. Has anyone else seen this? Bug? My misunderstanding of design? Consider the simple example: <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> ...

how to reduce native heap usage in google map for android ?

Hi everyone, 10-15 14:43:43.020: ERROR/dalvikvm-heap(299): 32768-byte external allocation too large for this process. 10-15 14:43:43.020: ERROR/GraphicsJNI(299): VM won't let us allocate 32768 bytes 10-15 14:43:43.260: ERROR/AndroidRuntime(299): FATAL EXCEPTION: main 10-15 14:43:43.260: ERROR/AndroidRuntime(299): java.lang.OutOfMemo...

Google Maps Api v3 custom InfoWindow - "google is not defined" error

hello, trying to create custom infowindows in my application that is based on google maps. next example is one of my base points for development: http://gmaps-samples-v3.googlecode.com/svn/trunk/infowindow_custom/infowindow-custom.html problem is that whatever i use this or some other example, in forefox's firebug i'm getting error ...

Google Map Api v3, how to get list of custom InfoBoxes (custom Overlays)?

hello, i created custom overlays using next link. how can i get a list of created overlays (or array, or whatever)? i need it, because i need ability to close some of them. ...

Storing Google's Reverse Geocoded values

So, my app involves a lot of reverse geocoding. Now, Google permits only 2500 requests/day. I was wondering if I could store the reverse geocoded values in my database, so for future requests for approximately the same latitude/longitude pair, I can query my database instead of sending a request to the Google Maps API. Is it illegal to d...

Google Map not showing up

I need to implement on my php page map. I have container <div id="map"></div> which is inside other div, and I put this code inside <head> tag but it doesn't show at all. Can anybody help me? <script type="text/javascript" src="javascript/jquery-1.4.3.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?s...

UI Webview + Google Maps V3 KML Support?

Hello, For quite some time I've been developing an iPhone/iPad app that uses a UIWebView to display specific KML overlays. Everything has worked fine up until a few days ago, when my KML files suddenly were not appearing on the webview. The javascript used to execute the KML overlay is still working (the map resizes to the intended KM...

flag/mark locations in google map with location name

Is it possible to mark the locations in google map dynamically with the location name. The client will provide us with the locations names through the rss feed. We will grab that location with php script (thats not a worry) and then want to mark them in google map. Say if we got the address: Weston Town Recreation Department 20 Alphabe...

Creating a Store Locator Flash Movie using Google Maps Flash API

Hello All, I am trying to create a flash banner add that utilizes the google maps flash api to display a store locator tool similar to this: http://portal.oggifinogi.com/Oggifinogi.DemoView/Latimes.aspx?pl=9b78efa4-ac0c-4a51-9516-8d0ebb5a1aa9&amp;camp=bcb25763-d64d-4ba7-b673-8195ba50e9f1 I have been given an extremely tight deadline a...

Google Maps API v3 panorama problem

Hi-- I'm updating some v2 API code to work with the v3 API. For the most part it's way better. But I'm running into some issues with the panorama object. Though the panorama object appears in the correct div, and all the copyright/controls appear, the window is blank (solid grey). Oddly the pano window shows the proper address for the g...

Data structure with two primary keys? (caching lat/lon address pairs)

I'm trying to cache lat/lon address pairs from Google Maps, so I need a data structure where the key is two ints (lat and lon). What's the simplest data structure for that? I thought of two ways so far: Nested hash: {37.734608 {-121.913019 "San Ramon, CA" -121.6 "Tracy, CA"}} Concat the two to make the key: {"37.734608,-121.913019"...