Questions tagged [infowindow]

The InfoWindow is a standard class within the Google Maps JavaScript API; it is an overlay that displays content in a floating window above the map and is anchored at a specified location on the map.

The InfoWindow is a standard class within the Google Maps JavaScript API; it is an overlay that displays content in a floating window above the map. An info window looks like a comic-book word balloon; it has a content area, a tapered stem, and the tip of the stem is anchored at a specified location on the map.

Questions that are assigned to this tag should deal directly with InfoWindow creation, placing content within an InfoWindow, styling the content within an InfoWindow, displaying or hiding InfoWindows, or managing InfoWindows on a Google Map.

Google has published some very good material for those that want to learn more about InfoWindows:

1150 questions
13
votes
1 answer

Google maps api v3 infowindow position in custom image

I implemented the v3 of google maps in my site. I created custom images to show points on the map. One of the custom images is 120px X 120px size and i would like to point the arrow of infowindow in the center of this image and not on the top…
Nick
  • 201
  • 1
  • 5
  • 13
13
votes
2 answers

google maps v3 formatting multiple lines of content in infoWindow

I am trying to create an infoWindow in google maps v3 which contains multiple lines of content. However the "\n" I am using to insert a newline doesn't seem to work. What is the recommended way to insert a newline? see code: //set content of…
trs
  • 2,454
  • 13
  • 42
  • 61
13
votes
3 answers

How to change the InfoWindow Background color

I'm facing the problem,My google Map API showing default InfoWindow with background color white.I want change the White color to Black color. REF CODE: google.maps.event.addListener(marker, 'mouseover', function() { …
13
votes
2 answers

Android Google Maps Move Camera

I've been implementing Google Maps with Android. I'm using frame layout to view the map, and it works. However, I wanna use the move camera in order to focus the map to a specific location. However, i can't implement it using my…
12
votes
2 answers

Open infoWindow of specific marker from outside Google Maps (V3)

I can't seem to get my head around this problem: I've got a map with (a lot of) markers (companies) that come from a generated XML file. Below the map, I want to show a (non-JavaScript-generated) list of all the companies that are displayed on the…
chocolata
  • 3,258
  • 5
  • 31
  • 60
12
votes
3 answers

Android Maps Utils Clustering show InfoWindow

I am planning to use the google maps marker clustering available in the utils library, but the google example app only shows marker clusters without any infoWindow. I am wondering now, am I not able to show a InfoWindow? I want the InfoWindow to be…
qwertz
  • 6,206
  • 9
  • 40
  • 62
12
votes
3 answers

how to add contentDesctiption to InfoWindow or marker in Android GoogleMaps V2 for TalkBack

I'm working on native Android app which implements the latest GoogleMap API (V2), and I need to make it accessibility complaint (as much as I can). I can add contentDescription attribute to the mapView and it works fine - TalkBack recognizes…
11
votes
2 answers

Google Maps API v3 - Markers All Share The Same InfoWindow

I've been digging around everywhere and I can't seem to figure this out. It's driving me crazy! I'm a newbie to javascript in general, so I can't quite put a finger on the translation that would fix my issue. I noticed that a lot of people have this…
11
votes
1 answer

Google map (v3) infowindow opening on the same marker all the time

I create several Gmarkers (from JSON data loaded by JQuery "load" function), on all of them I add an event listener to open the infowindow object I created before on the marker, and then I add them all to the map. The issue is that the infowindow…
Julien
  • 9,312
  • 10
  • 63
  • 86
11
votes
1 answer

Creating Infowindows on features loaded via loadGeoJson()

I apologize if this is basic, but I have very limited javascript knowledge. I'm making a map that loads GeoJSON data that I created in ArcGIS reformatted to GeoJSON using ogr2ogr. I've got the map loading and showing the point markers from my…
TampaCraig
  • 141
  • 1
  • 1
  • 8
11
votes
2 answers

Change the margin color of InfoWindow view of marker in google maps api v2

Hello I try to change the default color that have (white) to black, this in the google maps api v2, anyone know how I can do this? PD: is the margin of infowindow this is my code where I change the content of infowindow but need change the margin…
Vinicius DSL
  • 1,839
  • 1
  • 18
  • 26
11
votes
3 answers

Multiple line or break line in .snippet (google maps apiv2)

I'm developing in google maps APIv2. The issue that I'm facing now is I only able to add in one line of word in info windows/snippet. But the output that I want is able to display in break line form as example show below. So is there any possible…
11
votes
1 answer

Add a google chart to a infowindow using google maps api

I've seen many other people with the same question but couldn't find a answer. I have a simple map I built using the Google Maps Javascript api v3. The map has a few markers which are linked to an infowindow to display specific information for each…
11
votes
2 answers

how to fetch image from the assets/images folder in a rails app

I have been searching and searching for this answer. But I cannot seem to make this work, several hours now. Please please help me. I'm a webpage of my rails app, I am trying to show an image saved in my assets folder …
banditKing
  • 9,405
  • 28
  • 100
  • 157
10
votes
4 answers

Google Maps API InfoWindow not Displaying content

My Code looks like this: var map = /*some google map - defined earlier in the code*/; var geocoder = new google.maps.Geocoder(); var address = 'Some Address, Some Street, Some Place'; geocoder.geocode({'address':address},function(results,status){ …
TomWilde
  • 248
  • 1
  • 2
  • 7
1 2
3
76 77