google-maps

Highlight polygon and tint rest of map using Google Maps

Hi, I'd like to display a highlighted polygon using Google Maps. The idea is that the polygon in question would be displayed normally and the rest of the map should be darkened a little bit. Here's an example image what I would like to accomplish with a polygon from Austria: Unfortunately, I'm a complete rookie when it comes to Goo...

Can't place Marker in GWT Maps with Lat & Lng - Null Pointer Exception in map.addOverlay(Marker)

Hi there, I'm trying to add multiple markers to my GWT-Map. If I do it with the geocoder, it works just fine... But I also get the values from a database, so I can place them via Lat Lng. That's the code: public static void markerSetzen(final double lat, final double lon) { /* Markeroptionen setzen */ MarkerOptions markeroptio...

Google Maps API: Route Possibilities Generated by Distance?

Possible duplicate: Google Maps: Given a point, how to find all points at a given road distance? I am not overly familiar with the maps API but wanted to get a feel for whether or not this scenario is possible. I am interested in creating a route generator based on given distance. Select a start location that also acts as finish l...

MKMapView: Getting the relative zoom ratio?

I need to get some kind of scaling factor which tells me by how much the map has zoomed (whenever the region changes). My first idea was to use the span's delta latitude or longitude values. I would keep a track of the 'old' value and then update the value when the map region changes and compare the ratio with the old value. I'm using...

Using jQuery and Rails to display data on a Google Map

Hi, I'm having trouble getting JSON data from my Rails app to display on a Google Map using jQuery. In my controller: class PlacesController < ApplicationController respond_to :html, :xml, :json # GET /places # GET /places.xml # GET /places.json def index @places = Place.all respond_to do |format| format.html...

how to pass parameters to a URL and get the generated image

I want to pass several parameters to this url and generate the map from it and show it in my java application. I know the code to download the image and show it in the java application. I want to know how to pass parameters to this address: http://maps.google.com/maps/api/staticmap?center=Nugegoda&amp;zoom=14&amp;size=1000x312&amp;m...

Android: how to get the walking distance between two geo coordinats?

I used this query URL http://maps.google.com/maps?q=from+A+to+B&amp;output=kml ,which is given in the answer to this question. But after I tried it, it doesn't work with coordinates. It works with address names tho. I guess I could use google's geocoding to get the addresses first. But I wonder if there is another way to get the w...

android get and parse Google Directions

google Directions API I read this guide now I can build a correct request to receive the xml file containg the directions from address A to address B. What I need is some instructions and example on how to read this xml to draw the obtained directions on an Android MapView. I'd like also to know what represents this tag in the xml: <o...

jQuery getScript and Google Maps API Problem

HI I got a problem with loading the google maps api. I got my own object with a function that initializes the map, and the google maps api gets loaded via jquery.getscript. but i always get an error message in the callback function: var MyGMap = { GMapScriptURL: "http://maps.google.com/maps?file=api&amp;v=2&amp;async=2&amp;key=", Map:...

Google maps display polygon

Hello all If i enter in google maps a point with this format:40.77065496240177 22.69926567871095 it will display a point in the map. How can i enter a polygon in the same way. I ask this to check the validity of the polygon and to visualize. Also if this is not visible i google maps is it more easier in google earth? ...

Closing any open info windows in google maps api v3

As the title states, on a given event (for me this happens to be upon opening a new google.maps.InfoWindow I want to be able to close any other currently open info windows. Right now, I can open many at a time..but I want only 1 open at a time. I am creating the info windows dynamically (i.e. I don't know ahead of time how many will be...

MapView: application crash on launched

Hello, I'm trying to display a map using that rotates according to the phone's orientation. I have rewrite a part of the google sample to use a SensorEventListner instead of a SensorListener. My Problem is when I try to use the findViewByID() method to display the map my application crashes on start. If I use MapView(Context, String) to...

Jquery and Google Maps in Wordpress not showing up

Hi All, I'm working with a theme for wordpress and for some reason the map will not show up. I'm not sure what's happening. I'm also getting a 602 error when i'm double clicking on it in the backend. But doesn't seem to be erros here. Thanks so much in advance for any help ...

Google maps api Directions User defined Steps

Hi All, I have a google map service with the stores mapped on it. I also have directions service (then you define two addresses or more and it shows you a way on this map, see google map api directions). So I waте to show the nearest stores to this way. Of course it could be the store located in the next streat of my way, so it also sho...

Google Maps v3 InfoWindow with Hyperlink does not work

Prior to showing an InfoWindow on the map I am calling setContent. The content being set contains a hyperlink. Everything works and the InfoWindows is displayed, however when you click on the "Driving Directions" hyperlink nothing happens. var infoWindowHtml = '<a href="http://www.google.com/maps?daddr=Aliso+Viejo,+CA" target="_blank...

Chrome says Cannot read property 'nodeName' of undefined, IE6 is fine, using Google Map API

I have an XML file in the following structure. <NewDataSet> <markers> <name>name text</name> <desc>desc text</desc> <Lat>57.149328033771</Lat> <Long>-2.12561060173764</Long> <cost>9985</cost> </markers> </NewDataSet> I'm using Google Map API to parse and map these, using the following Javascript. function load() { if (...

Removing google map markers using JQuery

Hi All, I've searched hi and low for info regarding this but to no avail. Basically I have a page that is loading a bunch of cateories as checkboxes, for example checkbox 1 is called 'Exhibitions' and when clicked on displays all the exhibitions on the map (I am passing the value of the checkbox to the JQuery function which then filter...

Will Google Map JS API 3 require an API key?

I did not find any indication that I would need an API key, and in fact I am using it without one. Did they announce that they were doing away with API keys or that the key would be implemented later? ...

Does this basic Google Maps V3 location demo work for you?

http://code.google.com/intl/fi-FI/apis/maps/documentation/javascript/examples/map-geolocation.html I get a grey page with latest Google Chrome (access to location allowed for this website), but no error messages. Ideas? ...

Is there an updated google code playground that supports maps v3?

Google has a cool tool to allow you to play with different aspects of their API available at http://code.google.com/apis/ajax/playground/ This currently only has examples for v2 of the maps api. Does anyone know if there's an updated version that supports v3? ...