google-maps

What to do when GMap Satellite imagery is unavailable

Hello-- is it possible to programmatically detect with the google maps api (javascript, v2) when satellite imagery is unavailable at a certain zoom level? I am creating some maps automatically and setting them to a certain zoom level, but in a few cases there is no satellite imagery available at that level, in which case I'd like to auto...

How can I make kml data look like google maps?

I have a program that generates a .shp file, and exports this as a kml file. I would like to be able to display my output using the standard google map 'map' style (gray background, yellow streets, etc) in google earth, or in the google earth api. Is there a style guide or method that I should be using? Any thoughts appreciated - I was...

Application stopped unexpectedly at launch

I've run this on a device and on the emulator. The app stops unexpectedly on both. I have not a clue what is wrong currently. It uses Google API Maps I compiled with Google Api 7. I followed this tutorial http://developer.android.com/guide/tutorials/views/hello-mapview.html (made some alterations clearly) I did use the correct API Ke...

which is the best library(python or javascipt) to save the google-maps info(kml file)..

i want to save the user's map info ,and then loading them when they need. i use python(pinax) and jquery , thanks ...

why my code does not load the kml file ..(it is the simplest way)

this is my google-map code: <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" > <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width,min...

How do I detect a click event on a google map through an overlay?

My problem is that I have a circle map overlay but I want to be able to move the circle by clicking the map to set the new center, the actual problem is that when I click on the overlay and call my method 'setCenter(overlay, latlng) ' , I get undefined latlang and a valid overlay. here is an example that can illustrate the problem, if y...

What is the proper way to wrap this php loop around the javascript

Hi, I am mashing together the Google Maps 2 script with a Wordpress loop so there is a CMS platform for the map data. I have this working fine : var point = new GLatLng(48.5139,-123.150531); var marker = createMarker(point,"Lime Kiln State Park", '<?php $post_id = 182; $my_post = get_post($post_id); $mapTitle = $my_post->post_title; ...

Sidebar and tabbed info windows using google maps v2

Does anyone know of an example where a Google Map is used to create a map with both a sidebar http://econym.org.uk/gmap/example_map4c.htm and tabbed info windows http://econym.org.uk/gmap/example_map10a.htm? The markers are defined and ready for sidebar function createMarker(point,name,html) { var marker = new GMarker...

Google Maps on IPhone won't zoom

I have an iPhone app that loads the following URL: http://maps.google.com?q=Apple Stores&ll=37.331689,-122.030731&z=3 As expected, the google maps app loads on the phone, but zooms to the entire US. It does not appear to be respecting the z= parameter, or at least, not allowing a zoom level that shows stores in the area. ...

Google Maps: How to prevent InfoWindow from shifting the map

Using Google Maps API v3. I noticed that if I have a map marker near the edge of my map border ... that if I click the marker icon so that the InfoWindow will display, my entire map shifts so that the markers InfoWindow is centered. I don't want my map to shift. Question: How do I prevent the map from shifting when InfoWindows are nea...

Google Maps Marker Click Event

I'd like to populate a google map with several markers. When the user clicks on a marker I would like it to send the user to a different webpage which is designated for that location. (for example: lets say the markers represent homes, when you click on a marker it takes you to a page with more information about the home) What is the s...

GXMLHttp problem in IE8

I have a function that uses GXMLHttp class to access data from server. getGeoData: function() { var url = 'response.cfm'; var request = GXmlHttp.create(); request.open('GET', url, true); request.onreadystatechange = function() { if (request.readyState == 4) { console.info(request.responseXML); var xml...

google maps with my application

hello i want to use google maps with my java web app.. is there any possiblity to use it , edit (mark regions, naming those regions) and save it ? ...

fitbounds() in Google maps api V3 does not fit bounds

I'm using the geocoder from Google API v3 to display a map of a country. I get the recommended viewport for the country but when I want to fit the map to this viewport, it does not work (see the bounds before and after calling the fitBounds function in the code below). What am I doing wrong? How can I set the viewport of my map to resu...

What states does my route travel through?

I've got a page that has a map with a starting and ending location. I run a route between them to get the nifty line showing the route. I'm currently using Bing but have attempted with Google as well. I'd like to know which states this route passes through so I can then overlay those states with specific information. Any suggestions ...

Showing each step geocode of directions

Hello, Google Maps API can build a Direction from a source to a destination. In the following Google's example, each step are published into the HTML code: http://code.google.com/apis/maps/documentation/examples/directions-simple.html I would like to get the Geocoding of each step of this direction, and store them in a array. I believ...

how do I convert a php array of names and coordinates to a javascript array for google map points?

I have a php array that has a bunch of data that I need but specifically I need just the name and longitude and latitude from each item in the array so that I can display points on a google map. The google map array needs to look like this in the end var points = [ ['test name', 37.331689, -122.030731, 4] ['test name 2', 37.331689, -...

How to achieve Bing maps like InfoWindow in Google Maps?

I'm using Google Maps v3. I really like the InfoWindows found in Bing, as opposed to Google. Screenshots & functionality found here comparing the two: http://www.axismaps.com/blog/2009/07/data-probing-and-info-window-design-on-web-based-maps/ Question: How can I replicate Bing like InfoWindows while using Google Maps v3? UPDATE: T...

Show count of all google map markers

Is there any easy way using the api to get a count of all markers on a map? I have a page similar to this http://www.gorissen.info/Pierre/maps/googleMapLocationv3.php where a user can add markers by clicking on the map. I'd also like to show a count of all the markers. I could do this by declaring a global count var and incrementing it i...

Using Latitude & Longitude to get a place with Yahoo

I am using Google Map API to add markers to a map when the user clicks a location on the map. I want to add an info window for the new marker when its clicked, the info window will be populated with details of the location. The Google map API returns the latitude and longitude so I just need a way of taking this info and getting a locat...