google-maps-api-3

Problems in upgrading to v3 from v2 of google maps API

I have full fledged integration of google maps version 2 in my web application, with features like get directions, cluster markers, tabbed info window, context menu(right click). The implementation has very poor design which is causing some problem, So now I need to revamp the core implementation to better design. I was thinking of upgra...

Google maps (V3) - Map container selector (using jquery)

I'm trying to solve a tricky problem in Google Maps (api V3) Works nicely: var map = new google.maps.Map(document.getElementById("map_container"), myOptions); Doesn't Work if I try to use a jQuery selector var map = new google.maps.Map($('#map_container'), myOptions); I made this EXAMPLE Thank you in advance Cheers Pedro ...

How to animate a marker smoothly with Google Maps?

I've written a small algorithm that animates markers' movement from one point to another. The algorithm looks like this in pseudocode: lat_delta = new_lat - old_lat; lng_delta = new_lng - old_lng; for(alpha=0; alpha < 1; alpha += 0.1) { lat = old_lat + (alpha * lat_delta); lng = old_lng + (alpha * lng_delta); update_marker(lat, l...

Controlling the width of a Google Maps InfoWindow

Anyone know how to set the width of the InfoWindow in Google Maps? The infowindow is the cartoon like bubble that pops up when you click on a point in Google Maps. I can control the height via CSS but cannot figure out how to change the width (I want thinner than the default infowindow). I found a reference to maxWidth in the API but I ...

googlemaps - open streetview centred on marker from link in infowindow

I have a google map with several markers on it and I am wanting to have an html link in each marker info window that when clicked will change the map to streetview centered on that marker. So far I have the map & the links in the infowindows. Clicking the links opens streetview but it is centered on the centre of the map. What must I c...

Google Map APi zoom bar not showing.

Google map api is not showing zoom bar and imagetype completely instead it is just displaying plus minus buttons for zoom in and out and drop down for selecting map type. Url is http://booking.smanager.net/design/index.php?lv=2 please see tab "Location". I m using firefox 3.6.10. What might be the reason? var myLatlng = new google.maps...

Google maps in Fancybox-wrong display on reopening

Hi, I have a problem with Google maps API. I'm using V3 API and fancybox for show up map in lightbox-like div. When I click on the link for the first time, fancybox opens and map loads as well. Everything seems to be OK, but when I close the fancybox and try to reopen, the map is loaded wrong..It loads only at about half area than it has...

Selecting Map Points Inside a Map Poly

I'm trying to find an algorithmic way to select which points fall within a specific arbitrarily shaped area on a Google Map. Basically I want to be able to provide a point and ask a function if that point lies within an arbitrary (but specifically defined) map area. For example, how could I tell if a point was contained within the green...

how can I display thumbnail image in spite of bubble in google map API

I am using google map api in my application. How can I show a thumbnail image in place of red bubble for a perticular address on Map. ...

How can i export GMap V3 features to KML?

I'm using a great tool (geoxml3) to load private KML data to my Map. However, if a user creates points, polygon and circle features on my map, how can i allow them to export that to KML? Is there a tool like geoxml3 or do i need to create the xml file manually? ...

Changing KML Placemark icons on click in Google Maps API V3

Hi, I am trying to change the KML placemark icons of a KML overlay in a sample Maps application that I am working on. Here's the sample code - function seekml() { var myLatlng = new google.maps.LatLng(40.65, -73.95); var myOptions = { zoom: 14, mapTypeControl: true, center: myLatlng, mapTypeControlOptions: { style: google.maps.MapT...

Access KML Markers in Google Maps

Is there any way to create a "sidebar" from a KML file when using the Google Maps API? I'm loading the markers on the map using something like this: var myMarkerLayer = new google.maps.KmlLayer('http://example.com/WestCoast.kml'); This works great so far, but how can I grab that data and loop through the points? I would like to avo...

google maps v3 "How to create a mark clicking in the map"

I need to create mark clicking in the map, thanks :) google.maps.event.addListener(map, 'click', function() { alert('click'); }); ...

How do i get the coordinates of all four corners of a Rectangle?

How can i retrieve OR calculate the coordinates of the NW or SE corners of a Rectangle? I'm using Google Maps API v3 and I know there is the getBounds() method which returns the NE and SW coordinates of the rectangle. I need all four coordinates because KML 2.2 does not have a rectangle schema spec, it only has the polygon schema and ...

Google Maps API - Changing Directions markers

I am working on an implementation of Google Maps using the V3 API. I've got all the directions working, but what I'm looking to do is change the markers that are used for the start and end points. I know I can suppress all markers or set all markers to a different icon with the option on the DirectionsRenderer, but I want the start and e...

Gmaps v3 create and manage object like like litleman of street view

Hi, I need to make a object like litle man(streetview) that user can be select drag and drop over maps to use as radius selector and callback. I have found this sample for v2. Can someone point me in the right direction. Need to use jquery or can make in api.v3?. Exist samples for similar features in v3. Regards. ...

Draw a circle radius around the marker in Gmaps v3 - polygons or img

Hi, How to draw a circle in the map linked to a marker used as center point and change the radius based on user selection ? Can someone pointing the ways. thanks. ...

Google map driving direction source code for their example ?

Google gave an example http://googlemapsapi.blogspot.com/2007/05/driving-directions-support-added-to.html Is the source code available somewhere or a tutorial on that precise example ? ...

Google Maps API v3 and jQuery-UI Tabs

I am using the new v3 of the Google Maps API. Basically the issue I have is that I have a Google Map within jQuery UI Tabs. The map is not in the first tab, so you have to click the tab to view the map, but it does not always render correctly. I.e. sometimes the map images are not correctly placed. I had this problem when I was using v2...

Google Maps API V3: limit map bounds

Hi, I'm trying to set bounds where you can drag the map using Google Maps API V3 Here is the solution for V2 http://econym.org.uk/gmap/example_range.htm that works pretty well. However with API V3 it isn't so good: when you use the same checkbounds() function, the map is twitching when you reach the bound while map.setCenter() changes ...