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
-2
votes
1 answer

Display an InfoWindow for 5 markers on Google Maps, the Infowindow is a chart

I have 5 markers on 5 different cities (Aberdeen, Edinburgh, Glasgow, Inverness, Dundee) I need to display this information in a chart on mouseclick. On Mouseclick: Edinburgh: Science Fiction - 55, Comedy - 33,Thriller- 21 ,Action - 63, Romance -…
-2
votes
1 answer

Adding links to Google Maps Markers outside of the map using options in a select dropdown

I have a Google Map with Various locations and I want to be able to goto and open the Info Window when a link - outside of the map is clicked. Below is the relevant bits of the working code, but I want to put the links into a select drop down rather…
Andy Ward
  • 73
  • 7
-2
votes
2 answers

Hide InfoWindow before custom styles are applied

I'm using Google Maps API InfoWindow and I'm setting custom classes via javascript. this.infoWindow.addEventListener("domready", this.handleContentReady); handleContentReady = () => { document.getElementsByClassName("gm-style-iw")[0] …
-2
votes
1 answer

Call function for content of infowindow when opening not only on init

I have some objects with markers. These objects have dynamic data and I would like to output them in the infowindow of the marker of the object. So far this is what I have: function createRandomObjectWithAMarker() { var marker; var aData =…
Kokodelo
  • 416
  • 1
  • 5
  • 25
-2
votes
1 answer

Directions to/from here infowindow in Maps API

I'm trying to replicate similar functionality in Google Maps where you right click & it gives an option to have directions to/from that point. The struggle I'm having is interacting with the infowindow & passing the lat/longs back. The listener…
-2
votes
1 answer

How can I make a Google Map InfoWindow tilt at a certain angle?

I need to make multiple info windows for a single marker. Normally they become overlapped. Can I make google map Info Window like tilted or in certain angle so that they can be visible all at a time clearly?
-2
votes
1 answer

Google map API v3: YoutTube videos are not played in infowindow. I get a blank window instead?

I am trying to put youtube videos inside infowindows, but it is not working. I get only empty windows. Here is my code. Since it is my first Javascript project, I am sure that I am doing something wrong. Can you please help me find where the…
-2
votes
1 answer

Google Maps API (JS) InfoWindow issue showing up images (html tags)

I'm making a tiny web app with Google Maps API (JavaScript), in my app I have a for to loop through locations (latitude and longitude) an some other information... Into the for I have this code: for (i = 0; i < locations.length; i++) { var…
candlejack
  • 1,189
  • 2
  • 22
  • 51
-2
votes
1 answer

add Infowindow to array markers refreshing every 5 seconds Google map

I have followed this example (http://jsfiddle.net/upsidown/p646xmcr/) to refresh the markers' location every 5 seconds on my map. Now I don't understand how I can add an infowindow to every marker I have with a different variable le't say time and…
mmarcc
  • 33
  • 1
  • 1
  • 7
-2
votes
1 answer

Google maps API infowindow showing only last statement from array

I have this code. Adding Markers work great but right infowindow to markers don't.. (title in marker too) It's returning only last statements from array infoUser for all markers. I know.. I'm duplicating a question but I tried fix it with a lot of…
liop7410
  • 135
  • 1
  • 6
-2
votes
1 answer

Google Maps Info Window calling from another API

I am trying to put info windows in for a Google Maps page. I am using an API to call data and also using the markerclusterer.js plugin. I've seen how to do it with with a JSON object or if the markers are within the JavaScript document but I don't…
adin
  • 783
  • 3
  • 13
  • 27
-2
votes
4 answers

onclick event doesn't work in infowindow maps api

Sorry for my English, as sought by the latter here in the forum. Good is simple on principle and what makes me most angry with hehehe. I have a map of the .js . var map; var idInfoBoxAberto; var infoBox = []; var markerAgrupado = []; var…
-2
votes
1 answer

Google map infowindow position

Here is a sample google map with three polygons. I am setting the infowindow for each polygon as, for (var i in coordinates) { arr = []; for (var j=0; j < coordinates[i].length; j++) { arr.push( new google.maps.LatLng( …
mpsbhat
  • 2,733
  • 12
  • 49
  • 105
-2
votes
1 answer

Infowindow content on html textfield

Here is a javascript code that shows the latitude and longitude on a marker's pop up when you click on a certain location.. now how can I show the results of the infowindow as an autofill on the html textfield?