infowindow

Google Map InfoWindow is too wide

On click of a marker, I'm opening an InfoWindow on a Google Map. The code is like this: var point = new GLatLng( mPointSet.points[i].lat, mPointSet.points[i].long); var marker = new GMarker(point); function createMarker(marker, message) { GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml( $("#mark...

Externalising Google Maps InfoWindow Content When Marker Is Selected

Hi, I'm wondering if anyone knows whether it is possible to take the content of a Google Maps InfoWindow and place it in an external DIV when the marker on the map is clicked? I've had a good dig around both the API docs and Google to see if I can find any examples or information relating to this but have had no luck so far. However I'...

Google maps infowindow height problem.

I've been searching the net for a solution. My problem is that the info window's height is not calculated properly. There are no images in there so it is not an issue with the image loading later and the size is not known when the bubble is created. Also if I fill it up with about 15 lines more text the size is starting to get alright....

google map api with original infowindow?

Hello, I used to use iframe to include google map by copying url on map.google.com. I wanted to change basic marker to my own icon. So I signed up google api and included my map with customized icon. The problem is that I don't get infowindow with google map api. I can insert customized infowindow with html, but I can't get same infowin...

How to update pixelPosition of a custom infoWindows on Google Maps V3 after dragging?

I'm creating a new mashup on top of Google Maps. It's simple enough that I chose to use V3 to provide longer life span. However, there's some special needs that Google Maps infoWindow doesn't provide. I've positioned my custom infoWindow with marker.projectionContainer.pixelPosition. I get correct position after zooming, but dragging d...

Dynamically generated javascript not executing in Chrome or IE, works in Firefox

I'm using the google maps API with GWT to create a tabbed infowindow with tweets inside one of the markers. the source of the tweets is dynamically generated. heres the java code: HTML recentTweets = new HTML( "<div>"+ "<script type='text/javascript' src='http://twitter.com/javascripts/blogger.js'&g...

Im looking for documentation on Goolge Maps API ver 3 infowindow tabs

Im looking for documentation on Goolge Maps API ver 3 infowindow tabs See here for proof that they do exist: http://www.apple.com/za/buy/locator/map.html?tySearch=1&amp;viaProduct=2&amp;viaSpecial=-1&amp;strCountry=ZAF&amp;lat=-29.8570032&amp;lng=31.0247936&amp;gCountry=ZA ...but nothing in the google maps ver 3 api? ...

InfoWindow replacement for Google Maps v3

I'm looking for an InfoWindow replacement for Google Maps v3. I want to use it for popping up on marker mouseover. The standard InfoWindow is wholly unusable because it pans and makes itself a nuisance. Google Maps v2 had the excellent GxMarker (doesn't work with the new API): http://code.toeat.com/gxmarker.html Does anyone know of a si...

Google infowindow is not displaying correctly using their API

I am using the Google map API to integrate the map into my website, I am using custom markers and infowindows. I have used this previously with no worries but now, when I click on my marker, the infowindow displays incorrectly. I have tried to many different things to try and fix it but I just can't seem to figure out whats going on. h...

Click event in Google Map InfoWindow not caught

With Google Map v2, I would like to be able to trigger a function when clicking a text in the InfoWindow of a GMarker. $(".foo").click(myFunction); ... marker.openInfoWindowHtml("<span class=\"foo\">myText</span>"); does not work. Why the event isn't caught inside the InfoWindow ? ...

Google maps API - info window height and panning

I'm using the Google maps API (v2) to display a country overlay over a world map. The data comes from a KML file, which contains coords for the polygons along with a HTML description for each country. This description is displayed in the 'info window' speech bubble when that country is clicked on. I had some trouble initially as the inf...

Google Maps v3 InfoWindow Too Wide

In Google Maps v3, I can't seem to get my infoWindow to a width smaller than 200px. Here is the code I'm using: var latlng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { zoom: 15, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var myMap = new google.maps.Map(document.getElementById("map_canvas")...

Google Maps API v3 - Directions/Paths breaking KML Overlay Infowindows

I'm in the end stages before content filling and then production on the Google Maps project I've been working on. A number of bugs and such have been thwarted, but this latest one has me relatively stumped. The demo map can be viewed here: http://dougglover.com/samples/finalProduct/ Everything works fine until you create a path using ...

Google maps : How to open an InfoWindow for a Polygon by clicking on it?

Hello ! I have a simple question, but i can't find the answer in the Google Maps API documentation... I have a map with 13 polygons drawed by the API. Here is an exemple of one of these polygons : var zone_up_montblanc = new GPolygon([ new GLatLng(46.21270329318585, 6.134903900311617), new GLatLng(46.20538443787925, ...

Google Maps V3: Infowindows not resizing to fit information

Problem I have a API V3 map, with a content window for each marker. The content of the infowindow stretches across multiple lines, but the infowindow does not resize to fit it all, causing an iframe-like scroll to appear. I have looked at the setContent() method in the API which according to some posts on the API V3 mailing list should...

Display the info window of a Google map marker

I have succeeded in loading a Google map using the gMap jQuery plugin and making it display several markers passed to it in a JSON object using the pattern demonstrated here under "Map with marker and info window". So far, so good. Now I want to have a link on the same page which, when clicked, displays the info window for a marker on t...

Look for coordinates - display an info window with a name on Google Maps

In Google Maps v2 GClientGeocoder.getLocations() you can search for an address or for GLatLng. Is there a way to combine these two, namely: search for a string containing both values, something like Home @12.345,21.8970 have the result (anchored at the coordinates) on map with a place name (Home) in the info window? ...

Dynamic Google Maps API InfoWindow HTML Content

I am working in Flash Builder 4 with Google Map's ActionScript API. I have created a map, loaded some custom markers onto it and added some MouseEvent listeners to each marker. The trouble comes when I load an InfoWindow panel. I want to dynamically set the htmlContent based off of information stored in a database. The trouble is tha...

How can I access the objects created by DirectionsRenderer in Google Maps V3

Hi, Is there an easy way to get access to the objects/properties of the markers and infowindows created by the DirectionsRenderer? (i.e. the "A" and "B" endpoints of the route) I'm looking to replace the "A" & "B" markers' infowindows with one that I've created (containing dynamic content) from another "non-route" marker. I've tried ...

randomize position of marker on google map

This problem has really troubled me and yet to have a solution. I have a list of locations with latitude and longitude. And each time i click on the button next, it suppose to auto open the infowindow of the location one by one each click. However, the infowindow and marker always open at the center. May I know how can I make the locat...