maps

Change Google Maps polyline z-index

Hi. I'm using the Google Maps API v3 directions service to calculate a route between two points. There are a lot of markers on my map and I want the polyline of the route to overlap the markers, so that the route is always visble. How can I do that? I tried to use PolylineOptions.zIndex, but this z-index value is calculated with regards...

Google Maps API GroundOverlay Complete Event

Hi all, is there a way to, w/ google maps v3, listen to an event that will indicate a groundoverlay asset has been loaded? I'm loading an image onto the map and would like to be notified when the asset has completed downloading and has been presented to the client. Any ideas? Thanks ...

Is there a way to display a single country in Google map? It should be only one country, not parts from other countries included

I need to display only a single country in google map. I need to display only one country and the parts of other countries should not be there.. for example if I want to display U.K. it should display only UK and sea around, no parts from other countries should be visible. Is there a Google API call or any other method? I couldn't find ...

Setting marker on google map

Hi, I am trying to set a marker on my Google map. I think I do it like Google wants me to, however the marker does not show up on the map. What am I doing wrong? You can see the implemented map here: http://nidarosnaprapati.no/wordpress/?page_id=66 <script type="text/javascript"> function initialize() { var latlng = new google.maps.LatL...

Google Maps API for Android in a WallpaperService (live wallpaper)

Is there a way to use the Google Maps API for Android in a Live Wallpaper? From looking at the API, mapViews seem to require a MapActivity, so I'm not sure if there an easy way to make this work in a WallpaperService out of the box. ...

Encoded polylines using JQuery

Hi, I've been given some encoded polylines to display on a google map. However I'm using JQuery for a lot of the front end functions and am now stuck trying to find the correct syntax for displaying encoded polylines using JQuery. The standard syntax for adding an encoded polyline is var polyline = new GPolyline.fromEncoded({ color: ...

get a link from the database into the google maps info window

Hi, i've started very enthousiastic with google maps and managed to get the info from my mysql dbase to the map on my site. The problem i'm facing now is that i want to be able to click through from the info window to a page on my site (the link also comes out of the dbase). Here is the standard google api code I'm using now ('mijnlin...

Calculating trip travel times using available geo APIs for 5k+ addresses

I'm working on a transportation model, and am about to do a travel time matrix between 5,000 points. Is there a free, semi-reliable way to calculate the travel times between all my nodes? I think google maps has a limit on the number of queries / hits I can achieve. EDIT I'd like to use an api such as google maps or similar ones as th...

how to add map layer overlays in opelayer?

i have 3 shapefile ready in a map file, and rendering it on mapserver. what i need is to and these layer overlay one over the other.how can i do this ...

Multiple infoWindows stacking over same location Google Maps API version 3

Hi, I'm loading a json file for a bunch of markers on my google map (verison 3 api) and then placing infoWindows for each marker. It all works swimmingly well except that the markers are ignoring the latlng information, and when markers are clicked the windows simply stack over the original marker. Everything works perfectly except for ...

Distance between two locations isn't right

I have used the algorithm on http://www.movable-type.co.uk/scripts/latlong.html to find the distance between two points. My two points are long1 = 51.507467; lat1 = -0.08776; long2 = 51.508736; lat2 = -0.08612; According to Movable Type Script the answer is 0.1812km My application gives the result (d) as 0.230km // Haversine formu...

In android how do i run an event after a google mapview completely loads?

Every time the bounds of the mapview change, i want to get them. The only problem is that I cant just listen to an ontouchevent or something similar because the map still doesn't have the new bounds by the time that method is called since it is asynchronous. How can i get this information efficiently and accurately? ...

Need help with making personalized maps in google map..

Hi all, I am trying to get something very simple done since a long time with Google Maps, and just can't get it done. This is so confusing and counter-intuitive unlike many Google products. I am not sure if I should be putting this question on superuser.com , but I am putting it here, as this is far more active. Say, I am in a new town...

google maps and ASP

I am very new to ASP and I have some small project to do, so I some help. I need to write asp page that will read latitudes and longitudes from database and place markers on the map. This is my current code function initialize() { // initialize the map var latlng = new google.maps.LatLng(-25.363882,131.044922); var myOp...

How to animate MapView once it loads?

Could someone please help me with loading maps using animation? I am trying to load a MapView. I want it to zoom to my place once the view loads. I am trying this: - (void)viewDidAppear { [super viewDidAppear:TRUE]; MKCoordinateRegion region; CLLocationCoordinate2D location=secondMap.userLocation.coordinate; MKCoordinateSpan span; locat...

Geocoding a park with Google Maps API

It is easy to use the Google Maps API to find a specific street address and return the latitude and longitude. For example, link. However, it appears that typing in the name of a specific location, for example a park, causes problems. Often these don't have a specific street number (at least, not easily findable). Despite the fact that ...

Grails Google Maps - Render map as index it can't pick up the places saved in db

Hi, I have successfully followed the Google Maps example at IBM DeveloperWorks. The map is currently located at: localhost:8080/myapp/trip/map and I want to move the map to be as the index page, localhost:8080/myapp. I can easily render the map if I replace the code in index.gsp, but the points in the db are missing. It seems that the ...

initializing the mapkit with a particular latitude and longitude Iphone

Iam making an iphone app, which should take in latitude and longitudes from an array and should locate and display the map with a customized annotation/pins. I have used the mapkit here's how: //MapViewController.h #import <UIKit/UIKit.h> #import <MapKit/MapKit.h> @interface MapViewController : UIViewController <MKMapViewDelegate> { ...

FancyBox with Google Maps Inline Div breaks

<div style="display: none;"> <div id="location<?php echo $r->id ?>"> <?php echo $r->address; ?>, <?php echo $r->city; ?>, <?php echo $r->province; ?> <h3 class="sub">Map of Location</h3> <?php $CI->conjunction->showMap($r->id, $r->lat, $r->lon, $r->postal, 'map_canvas'...

Get a list of businesses from a public site like Google, Bing Maps or yellow pages

Hello, I would like to know is there a way to get a list of all businesses using an zip-code. edit: I found this another question on SO http://stackoverflow.com/questions/2097792/retrieving-businesses-with-google-maps-api But this is not exactly I wanted. Thanks, Gokul ...