google-maps

MapActivity: set APIKey programmatically.

Hello all, I currently use a MapActivity in my application. I use it with 2 API Keys. One for debugging, and one for "production" I am fed up with changing these values in the xml layout: <view class="com.google.android.maps.MapView" android:id="@+id/myGmap" android:layout_width="fill_parent" android:layout...

How can i display this polygon on a Google Map?

Hi folks, I have some MultiPolygon data (The USA state of California) which I'm trying to display on a Google Map (v3 Javascript API). The link to the data is here on CodePaste.NET. (Note: I pasted it there because the data would spam this post). So I've tried to make it into some Json data .. and then display that MultiPolygon on a g...

Location searching...

For the site I am building I want the user to be able to search for a location, however because I don't have a list of locations for the UK, I have developed a script in PHP which calls: http://ajax.googleapis.com/ajax/services/search/local in order to get the lat and lon coordinates of this location to store in the database for future u...

Display in input text instead of div

I follow the http://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/getlatlng.html instead of displaying the 'latlng' in , how do i display it in ...

How to determine a vector using 2 Points in Android map?

Hi there everyone. I'm trying to do some advanced features with android maps and to do that I need to do some operations on vectors. Now - I read the answer from this and it gave me some hints and tips. However, there is a part which I don't understand. Please allow me to quote this: Now that we have the ray with its start and end co...

Google Map: How to get GMap2 object after initialized?

The question is clear on the title I guess? "How to get GMap2 object after initialized?" => I would like to extend this question: Is there any method to retrieve all existing google markers from GMap2 object? Thanks in advance. ...

Zoom and center a Google Map according to its markers (JavaScript API V3)

Hi all, I think the title is enough, I don't even see how to do this for the V2 and V1 API :/ Thanks :) ...

populating mapOverlay

Does anyone know of any tutorials on populating a Mapview using an overlay at a specific point? e.g adding a marker at a specific lat / lng on your mapview? ...

How does maps.google.com select and render search result markers so efficiently?

I've been looking into a number of ways to display a large number of markers on a map recently, and thought that Google must have a very efficient solution to this problem (beyond having massive servers!). If you type, say, 'accommodation' into the map search bar, the map shows about 100 or so points (regardless of zoom level), and more ...

Google Maps and GMapCatcher... File/Directory Naming System

Does anyone have any ideas as to how GMapCatcher knows which folders/directories to store the tiles as? I know it is some combination of x,y, and zoom levels, but I really don't see how they are determining which folders the tiles get stored in, and was wandering if anyone had any insight as to how they determine what tiles to retrieve?...

Google Maps API v3 Click events not passed on by custom overlays

Hi there, I've been making use of InfoBox to draw custom overlays on my GoogleMap. In short I load from XML lat longs etc, draw pins on the map, and show a custom infowindow. All good, however I wanted to use my own content instead of pins for markers (small previews of the content), so I created them using InfoBox as a map label. Then...

Radius of "viewable" region in google maps v3

I need to know how to retrieve the radius of the viewable zoom level in google maps API v3. For example, if I am at zoom level 3, and depending on the users screen size (lets just say 400x400 viewable region) how do I get the "radius" circle of the viewable area. Alternatively I'm currently using map.fitBounds() for all the points I'v...

Filtering Google Maps Markers By Category Using GeoRSS

I've got a map set up displaying markers from a geoRSS file. These markers are grouped by category. What I'd like to do is set up text links for the categories that, when clicked, hide all markers except for those in the associated group. Not sure where to start with this. ...

How to add your application to the "share this place" list in Google maps

Google maps now offers a way to "share a place" with what appears to be a predefined list of sources. When users search for a place on Google Maps, whether it's a specific address, cross-street, or restaurant name, there's a new button called "share this place" that posts the location info to Google Buzz, Facebook, Twitter, or via e-mai...

Mobile Phone: google maps api or native sdk - capabilities?

We have an existing website which currently uses v2 of the google maps api which displays cellphone signal strength as a ground overlay on top of the google maps tiles (similar to this http://www.vodafone.co.nz/coverage/) What I would like to know is if it's possible to have ground/tile overlays in google maps android/iphone native api'...

how to get US Highway exit geocodes using Google maps API or through some other means?

Hi, For our application, we need to get all the US interstate highway exits along with their Geocodes. Can you please explain how to get these using Google Maps API or Google Local search or otherwise? So far I have no clue as to how to proceed. I greatly appreciate if you can point me in right direction. ...

Google maps, plotting markers based on a lat / lng value

Hey Guys, I've got the following code which plots a marker at the specified x/y screen co-ordinates. like so... public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); //---translate the GeoPoint to screen pixels--- ...

drawing routes with google earth js api.

Hi People, I'm starting with a project that use GM api. I need to create routes form the tracklogs from vehicles, but for some reason doesn't work. This is the code, I'm calling the startMap function first, and then addRouteWaypoints. The map and waypoinps are working fine, but the route is not displayed. /// var map = null; //-----...

Context null Pointer

I've been following this tutorial: http://developer.android.com/resources/tutorials/views/hello-mapview.html but in onTap mContext is throwing a NullPointerException.. anyone know why? Here's my code.. public class Mapitems extends ItemizedOverlay{ Context mContext; private ArrayList<OverlayItem> mOverlays = new ArrayList<OverlayI...

Google Maps API v3 : Click events not triggered in firefox for custom marker

Hello, have created a map that I'm trying to have function similar to 'My Maps'. I have two dropdownlists on the right side, based on the selection in those ddl's, you can add a custom marker / icon. You select a marker type, then click the '+' button in the top right corner of the map, and then click where you want the marker added. My ...