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...
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
...
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 ...
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...
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.
...
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: ...
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...
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...
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
...
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 ...
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...
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?
...
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...
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...
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...
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 ...
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 ...
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> {
...
<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'...
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
...