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...
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...
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...
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...
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...
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&zoom=14&size=1000x312&m...
I used this query URL
http://maps.google.com/maps?q=from+A+to+B&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...
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...
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&v=2&async=2&key=",
Map:...
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?
...
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...
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...
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
...
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...
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...
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 (...
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...
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?
...
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?
...
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?
...