google-maps

Android ItemizedOverlay draw method question

Does anybody know the relationship between the members of an Android Itemized Overlay list and when draw() is called. Specifically, I'm trying to find out if draw is called once for each Overlay or once only for the whole set. Thanks, R. ...

Suggestions for API to list places / businesses around you using GPS

I'm looking for an API that would provide me a JSON list of businesses or places around me after I pass lat/long coordinates to it. Google Places API seems to fit the bill, but they're in a semi-open beta release right now. Does anyone know anything else that would fit the bill? ...

j2me: how to show My Location in google map ?

Hi how i show My Location on Google map ? i see j2me google map application that show My Location , how can i get My Location cordinate ? thanks ...

Google map display from a hidden area

I really hope someone can advise on displaying a google map from a hidden div. I have a google map which I want to show a user if they click on a link ie, Show Map. Putting the map in a hidden div just does not work at all so I went with hiding the map -1000px on a position absolute css value. This has given me much better results but...

How can I automatically plot markers for addresses on a Google or OpenStreetMap?

I have a list of UK addresses and would like to plot them on a google or openstreetmap (I dont mind which). Is there a way to render a batch of addresses on a map with dots to represent the location (rather then the standard marker). To make things slightly more complex, I would like to change the colour and size of some markers. The...

Google Maps Android API gives a NoClassDefFoundError

My app just consists of a map with an overlay, but when I create my MapView, my app crashes with a NoClassDefFoundError. I'm using the Google API AVD that matches my target, but apparently I'm still doing something wrong. Any ideas? ...

why projection is undefined using google maps v3 .

this is my code: var i=0 google.maps.event.addListener(map,'bounds_changed', function (){ var bounds_=map.getBounds(); if(!i){ set_node_to_top() i=1; }); function set_node_to_top(){ MyOverlay.prototype = new google.maps.OverlayView(); MyOverlay.prototype.onAdd = functio...

Database and Google maps results

Hi, I need to search hotels from my db and show them in Google Maps. For instance, when I search hotels in Rome, it will be display ONLY the hotels in Rome (or near, how this ?!) and in my db. I need to show also the results navigator page. How can i do this ? My db has 800 rows, so if I load all data in maps I get many errors. I use PH...

JavaScript Google Maps API and web application on IPhone

Hi, I have developed a web application for mobile phones that uses JavaScript Google API. It works fine on any Android phone however on IPhone the map is not "dragable" - I can't move the map (I click on a map and try to move it but it stays the same as if I was trying to move a static image). I found some information pointing out that i...

How to create or modify the google maps controls?s

I wonder how sites like trulia.com and fotocasa.com customized the google maps ui for their website ex1: http://www.trulia.com/for_sale/Pinecrest,FL/x_map/#for_sale/Pinecrest,FL/x_map/2_p/ ...

Is there something similiar to GUnload() in google maps v3?

In google maps v2 we had onunload="GUnload()". now in the newer version v3 i couldn't find this funtion in the api. i'm asking because i have some troubles with memoryleaks in combination with google maps v3. ...

OverlayItem not drawing on map when added

I followed the HelloMapView tutorial, and I extended it so that I can add more OverlayItems to the map with a button, as well as some load / save functionality. All of this works correctly, except for adding a new OverlayItem. All of the OverlayItems added when the application loads a drawn fine, but when I add a new one to the ItemizedO...

How to mark position of iPhone on Google Map?

I want to make a webpage with a Google Map that marks the geographical position of my iPhone, how do I go about this? I've looked into the Google Map API section on markers - so I can make a static marker, but I don't know how to pull the GPS data from my iPhone. ...

Load a map in a background service

Not sure if i can explain this well, but here it is. I'm trying to make an application that would load a map and save it as an image to the SD card, but I would like to do it in the background. I've gotten to the point where I can display a map in a foreground Activity and save it to a file, but I can't think of a way to make it happen i...

Moving icons on a Android MapView

I'm working on an application that displays the location of moving items on a Google MapView. I need a way to update the position of the icons that represent the items (as well as change the facing of the icons every two seconds as updated data comes in). I currently have an activity in the app that extends MapActivity. On to this I hav...

How to parse distance data with iphone from google directions api?

I'm trying to get the distance between two places (by way of roads), and I get that an http request will return a XML with the following data http://code.google.com/apis/maps/documentation/directions/#XML but I don't get how to use NSXMLParser to get the total distance. I would assume to use the parser:didStartElement:namespaceURI:q...

php script for google maps

Hi there, I am trying to create a google maps for mutiple domain the php script is below: $my_google_map_keys = array('host1' => 'key1', 'host2' => 'key2'); $conf = array( 'google_maps_key' => $my_google_map_keys[$_SERVER['HTTP_HOST']] ); but I can't make it work after put on my heading. any one can help please? sorry, originally...

Google maps API embedded in iFrame not centering on lat/long

I have used the Google Maps API to create a simple HTML page which I'm then embedding into an iFrame on another page. Page works fine when outside of the iFrame however when within the iFrame, the window position doesn't scroll to center on the marker. An example is here: http://webfe.omega.studiocoast.com.au/epping-club.aspx and click...

How to disable mouse wheel zoom on Google streetview?

Consider the following example code: http://code.google.com/apis/maps/documentation/javascript/examples/streetview-simple.html I can do scrollwheel: false on a mapOptions to disable mouse wheel zoom. The feature is not implemented on the streetview panoramaOptions. In Chrome, I can safely disable mouse wheel zoom on the streetview simp...

Android HelloGoogleMaps tutorial exception

I'm working with the HelloGoogleMaps tutorial on the Android Developers' Resource page (http://developer.android.com/resources/tutorials/views/hello-mapview.html) and when I run part 1 of the application ("Creating a Map Activity") on my emulator, I get the message "The application HelloGoogleMaps (process com.example) has stopped unexpe...