infowindow

Google Maps : open InfoWindow on mouseover, close & reopen on click

帅比萌擦擦* 提交于 2020-01-10 14:45:17
问题 I've a page with markers with InfoWindows that I opened on Click. I decided to rather open the InfoWindows on MouseOver which is working. But I find that having to move the mouse to the cross of the InfoWindow to close it is a bit demanding for these lazy visitors of the internet. So I added a Close event on Click of the Marker which is also working. What I can't figure out to work is to be able to re-open the InfoWindow on Marker Click instead of having to mouseout in order to be able to re

Google Maps : open InfoWindow on mouseover, close & reopen on click

浪尽此生 提交于 2020-01-10 14:45:12
问题 I've a page with markers with InfoWindows that I opened on Click. I decided to rather open the InfoWindows on MouseOver which is working. But I find that having to move the mouse to the cross of the InfoWindow to close it is a bit demanding for these lazy visitors of the internet. So I added a Close event on Click of the Marker which is also working. What I can't figure out to work is to be able to re-open the InfoWindow on Marker Click instead of having to mouseout in order to be able to re

Google Maps API - Display info for all markers with same lat/long

徘徊边缘 提交于 2020-01-05 10:25:41
问题 I am mapping some concert locations on google maps, using data from Songkick.com's API. I'm making a call to the data using jQuery. When mapping a concert, if a single venue has multiple concerts scheduled, all of the markers are placed in the exact same location. This means that only the marker of the most recent concert is visible, and the google maps infoWindow only displays the data for that most recent concert. I would like to make it so that all concerts taking place at that exact same

Google Maps API v3 Info Bubble [duplicate]

╄→гoц情女王★ 提交于 2020-01-05 07:56:14
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: InfoWindow not Displaying Still lingering on a problem that I do not understand. I do not see why this would not work and I'm sure it's something extremely simple. I've changed a few things and still nothing. I am trying to have a user click anywhere on the map and an infoWindow will tell them the lat/lng of that location. Thanks var window; function InfoWindow(location) { if ( window ) { window.setPosition

Google Maps API v3 Info Bubble [duplicate]

风格不统一 提交于 2020-01-05 07:55:13
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: InfoWindow not Displaying Still lingering on a problem that I do not understand. I do not see why this would not work and I'm sure it's something extremely simple. I've changed a few things and still nothing. I am trying to have a user click anywhere on the map and an infoWindow will tell them the lat/lng of that location. Thanks var window; function InfoWindow(location) { if ( window ) { window.setPosition

Dynamically Add Image To Infowindow

六月ゝ 毕业季﹏ 提交于 2020-01-05 07:28:46
问题 I wonder whether someone may be able to help me please. I'm using the code below to load images onto a HTML page, which are pertient to the current 'Location' and 'User' id's. <div id="galleria"> <?php $dirlist = getFileList($galleryPath, true); $x = 0; foreach($dirlist as $file) { if((preg_match("/\.jpg$/", $file['name'])) or (preg_match("/\.jpeg$/", $file['name'])) or (preg_match("/\.png$/", $file['name'])) or (preg_match("/\.bmp$/", $file['name'])) or (preg_match("/\.gif$/", $file['name'])

Dynamically Add Image To Infowindow

走远了吗. 提交于 2020-01-05 07:28:30
问题 I wonder whether someone may be able to help me please. I'm using the code below to load images onto a HTML page, which are pertient to the current 'Location' and 'User' id's. <div id="galleria"> <?php $dirlist = getFileList($galleryPath, true); $x = 0; foreach($dirlist as $file) { if((preg_match("/\.jpg$/", $file['name'])) or (preg_match("/\.jpeg$/", $file['name'])) or (preg_match("/\.png$/", $file['name'])) or (preg_match("/\.bmp$/", $file['name'])) or (preg_match("/\.gif$/", $file['name'])

Resize the infoWindow box Google Maps API v3

ε祈祈猫儿з 提交于 2020-01-02 08:57:47
问题 The default infoWindow size is way too big for me. I want it to be much smaller can I can't figure out how to do it. I've tried setting a maxWidth parameter on my infoWindow constructor like this var infowindow = new google.maps.InfoWindow({'maxWidth':'10px'}); and setting the CSS width like this <style type="text/css"> #infoWindow { width: 10px; } </style> but that only seems to change the size of the text wrapping, not the actual box. How do I change the size of the infoWindow box? Here is

How to create multiple infowindow in google map api

家住魔仙堡 提交于 2019-12-31 10:23:09
问题 I create 3 markers in the map whose data comes from a json. but when I click on a marker and try to open the Info window only the last marker will response correctly.. please help me.... this the code.... <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> <script type="text/javascript" src="js/jquery-1.8.3.min.js"></script> <script src="http://google-maps-utility

Google Maps Mouseout only applied to last infowindow

痴心易碎 提交于 2019-12-30 07:16:42
问题 .Hello I have a random problem I haven't been able to figure out. I have a map with markers that show infowindows when you hover over them which are supposed to close when you move your mouse away. For some reason the second part (closing the infowindow on mouseout) only gets applied to the last marker. If anyone could explain to me where I'm going wrong and how to fix my code so that all of the infowindows will close when the user moves their mouse away from the marker it'd be greatly