google-maps

Can the GoogleBar's location on the map be changed?

I'm using the GoogleBar in the Google Maps API v2. Can the location of the GoogleBar be changed from the bottom left of the map? I'd like it at the top of my map. ...

How do I load all my location based content into google maps

I am writing an iPad application that uses the MapKit control. How do I get all my content into Google Maps. i.e. I have a bunch of locations along with photos, video, audio and various other information. So when the iPad user loads my App and zooms into a certain place in the world I want my Annotations to be visible and when they tou...

Google maps KM bounds box reapplying itself on map zoom

I have a map in which I apply a custom overlay using KMbox overlay to signify where I think the users general point of interest lies. What I want is to display this map to the user and allow them to click on the map to give me an exact location match of their POI. This all works fine except for when the user clicks on the map and change...

how use google api in iphone to query hotels around my place

Hi, I am new to google apis and iphone LBS related apps. I need to know how to use a google api and get the list of hotels around my GPS location. Here the same functionality is achieved through javascript. how to do this on iphone application ? http://code.google.com/apis/ajax/playground/#localsearch_with_markers ...

Clicking inside a polygon in Google Maps

The included JavaScript snippet is supposed to do the following: As the user clicks on the map, initialize headMarker and draw a circle (polygon) around it As the user clicks inside the circle, initialize tailMarker and draw the path between these two markers 1 is happening as expected. But as the user clicks inside the circle, in th...

Google Maps Geocoding API - country biasing, bizarre results

I'm connecting to the Google Maps API from PHP to geocode some starting points for a rental station locator application. Those starting points don't have to be exact addresses; city names are enough. Geocoding responses with an accuracy equal to or grater than 4 (city/locality level) are used as starting points, and the surrounding rent...

Adding KML to Google Map with iframe

'm trying to add a KML to Google Map. Each point in the KML file contains an iframe that loads an external html file, like in the example below. The point is shown OK on the map, except the iframe content never shows. Does this get stripped by Google Map? Is there any way to load external content into the InfoWindow when you click on th...

I want to use Google Map API for my Desktop application

i want to use google map api for my desktop application. the application will be totally connected to internet. while i was searching some research notes about this implementation. i found a ideal site with the configurations. but it has some java files to be downloaded. but when i tried that website its not loading. which is swinglabs...

Android 2.1 GoogleMaps ItemizedOverlay ConcurrentModificationException

Hi, I cannot figure out the origin of the ConcurrentModificationException. In my activity I'm calling updateMapOverlay(). I'm also calling updateMapOverlay() inside another Thread (a TimerTask) that is invoked on regular intervals. I'm taking the appropriate locks when invoking updateMapOverlay() from both the threads. Is this proble...

Google Maps: marker icon and popup window

The code below opens a popup-window whenever a marker on the map is clicked. It works: <script type="text/javascript"> function popup() { newwindow = window.open('test.php','Test','width=800,height=500'); newwindow.focus(); return false; } function addMarker(lat, lng, map){ var latlng = new g...

Custom Google Route that avoids certain points

I'm writting a web app in php that gets custom routes. Using the Google Maps API I am able to get the route from point A to point B. Now, I would like to avoid a certain point that appears along the found route. Is that possible? Does Google Maps allow this operation or do I have to compute it by hand? If so, have you got any idea where...

Google Maps : Show Map Via Address

Hi , I have this Code To show map on a page var _map = new GMap2($get("gmap")); var _latLng = new GLatLng(lat, lng); _map.setCenter(_latLng, 11); _map.addControl(new GLargeMapControl()); _map.addControl(new GMapTypeControl()); var _icon = new GIcon(G_DEFAULT_ICON); var marker = new GMarker(_latLng); _map.addOverlay(marker); But I do ...

gmaps v3 get latitude from event.latLng

hi .. i have an old gmaps application using V2 and iam trying to update it to v3.. i have a really simple problem, but i cant fid a solution yet.. how can i strip the latitude and the longitude from the "event.latLng"? it is returning a point (), but i need only the lat alone and the long for itself .. i cant get this to work !? any h...

iPhone: Create MKAnnotation

Can I create an MKAnnotation, or is it read only? I have coordinates, but I am not finding it easy to manually create an MKAnnotation with using setCoordinate. Ideas? ...

Scroll Position on web with google map and ajax rating

my website is composed of google map and ajax rating component. everytime I vote any sections, the page will be refreshed and start at the top of the website without maintainig the current scroll position that I click 'vote'. What should I do ? I tried remove the tag which make scroll position effective. However, my website should ha...

infoWindow on MarkerClusterer in google maps

I need infoWindow to be opened instead of zooming in map, when clicking on the ClusterMarker. I am using Gmaps util library MarkerClusterer for creating cluster of markers. I tried changing following line in markerclusterer.js ClusterMarker_.prototype = new GOverlay(); with ClusterMarker_.prototype = new GMarker(); so that I can get...

Can't view embedded Google Maps because "Internet Explorer has modified this page to help prevent cross-site scripting"

The offending page is http://beta.westlake.school.nz/school-details if viewed using IE8 ...

Using Google Maps API, how do I restrict accuracy when reverse geocoding?

I would like to limit the accuracy of a call to GClientGeocoder.getLocations so that it only returns results with accuracy of say 0 to 3, that is from unknown to sub-region. The idea is to find the rough area in which the user clicked. ...

Toll Charges for Google Maps?

I'm writing an application that will calculate the distance and cost between two points. One of the requirements is that I need to calculate the cost of the journey (gas and road tolls). Gas is easy. However, I can't think of a good way of doing toll charges. Google tells me if the GStep has a toll but it doesn't say how much. It seems l...

How to check if a Latitude/Longitude point is on the GRoute in Google Maps API?

I'm ploting a route between two points and I need to check if the route goes through a predefiend location. In the api, each GStep has a start and end points but the path doesn't have to be straight. Given a Lat/Long point, is there a way to check if it intersects with a route? ...