I’m using Google Maps API to get autocomplete list of cities and countries (without other details), and it works exellent. Now I want to do exactly the same but to get only countries names. Somthing like replacing types: [‘(cities)’] with types: [‘(countries)’]… (what I tried but didn’t work) What should I do in order to get only countries into my
Tag: google-maps
Google maps Places API V3 autocomplete – select first option on enter
I have successfuly implemented Google Maps Places V3 autocomplete feature on my input box as per http://web.archive.org/web/20120225114154/http://code.google.com:80/intl/sk-SK/apis/maps/documentation/javascript/places.html. It works nicely, however I would love to know how can I make it select the first option from the suggestions when a user presses enter. I guess I would need some JS magic, but I am very much new to JS and
Google Maps v3: How to tell when an ImageMapType overlay’s tiles are finished loading?
I’m working with the Google Maps v3 API, and I have a custom overlay layer based on the ImageMapType class. I would like to show a loading indicator of some sort while the overlay’s tiles are loading, but I don’t see any way to know when they are finished. The code to create the overlay looks similar to the following:
“google is not defined” when using Google Maps V3 in Firefox remotely
Here’s my conundrum: I have a page that uses Google Maps V3 and jQuery. It all worked well locally in FF5, Chrome and Safari. Once I uploaded to a web site, I get a “google is not defined” error on the first line that I try to use a google object It only occurs in FF and only occurs remotely
How can I get city name from a latitude and longitude point?
Is there a way to get a city name from a latitude and longitude point using the google maps api for javascript? If so could I please see an example? Answer This is called Reverse Geocoding Documentation from Google: http://code.google.com/apis/maps/documentation/geocoding/#ReverseGeocoding. Sample Call to Google’s geocode Web Service: http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true&key=YOUR_KEY
Displaying crosshairs in the center of a JavaScript Google Map
I’d like to display a crosshair/reticule that’s fixed in the center of a Google Map, just as Wikimapia.org do. Unfortunately they are using v2 of the API and I’m using v3. The crosshair should remain fixed in the center as the user pans the map around. There’s no CENTER option for the ControlPosition enum, so I imagine any solution will
Load google maps v3 dynamically with ajax
When i try to load google maps v3 with ajax the result is: in the source code, i suppose that writes with javascript document.write(); how i can do this without iframe? thanks. Answer This is not supported. Please load the API using supported methods: http://code.google.com/apis/maps/documentation/javascript/tutorial.html#Loading_the_Maps_API
How to call public method from a event handler
I have the function below. Everything works fine except for the Push, Pop and Remove method. These method should be called by the event-handler. This event is fired by the Google Maps API. The problem is that when the event is fired, these method are not found. I have a “Push is not defined” error message. I tried with this