infobubble

Google map's marker doesn't display InfoBubble on iPhone/iPad

天涯浪子 提交于 2021-01-27 17:16:22
问题 Everything about Google map works fine in different desktop browsers even in smaller screen - initialise, markers, infobubbles etc are working perfectly. But on iPhone/iPad, the InfoBubble doesn't appear when the marker is clicked. After research on Stackoverflow and followed the various solutions: Google Map Infowindow not showing properly Google Maps API v3: InfoWindow not sizing correctly Why does Safari on the iPad not display my marker on an embedded Google Maps page? how can i bind

google maps infobubble dynamic content not loading on first marker click

允我心安 提交于 2020-01-17 04:54:11
问题 I'm trying to add dynamic content inside a google maps infobubble: - one first marker click an empty infobubble appears - on SECOND click of the marker the correct content is loaded As per this answer I'm using the domready event on the previously defined infobubble object to launch the function that loads the dynamic content. ...although the JS fiddle in that answer is misleading since the 'dynamic' content is actually loaded prior to domready using the content option of the new InfoBubble()

Google Maps API - Event Listener for InfoBubble doesn't work

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 13:42:25
问题 I need an event listener waiting for a click. Unfortunately the way it worked with InfoWindows doesn't seem to work here... Well, here's my InfoBubble : var infoBubble = new InfoBubble({ map: map, content: $('#my-div').html(), position: new google.maps.LatLng(areas[area].lat, areas[area].lng), shadowStyle: 1, padding: 0, borderRadius: 0, arrowSize: 10, borderWidth: 1, borderColor: '#ccc', disableAutoPan: true, hideCloseButton: true, arrowPosition: 15, arrowStyle: 0 }); And here's my listener:

Google Maps markerClusterer + InfoBubble - selectively display or hide based on cluster true or false

北城以北 提交于 2019-12-11 21:23:53
问题 I have markerCluster working fine with InfoBubbles (a utility for gmaps v3). It looks like this: Last little improvement here is to make the infoBubbles disappear IF the markers have been clustered. You can see the (3) in the image and you see some phantom infoBubbles floating nearby but no markers underneath them. The code says: infoBubble[i] = new InfoBubble({ content: '<div id="msg" class="map-text" style="font-size:13px">'+res[i].job.start_time+" -"+res[i].job.end_time+'</div>',

Close open InfoBubble when open a new (gMap v3)

大憨熊 提交于 2019-12-08 07:46:57
问题 I do not know what to do... I just want to close all opened infoBubbles if I'm going to open a new one. I am using the following code. Ideas? I tried a lot and googled a lot but it shouldn't be so complicated, should it? I thought to create an array and save id for the open one, but I think that there must be another, quite easier way to fix this. $(document).ready(function(){ createmap(); function createmap(lat,lng){ var latlng = new google.maps.LatLng(50, 10); var myOptions = { zoom: 12,

Close open InfoBubble when open a new (gMap v3)

守給你的承諾、 提交于 2019-12-07 03:01:28
I do not know what to do... I just want to close all opened infoBubbles if I'm going to open a new one. I am using the following code. Ideas? I tried a lot and googled a lot but it shouldn't be so complicated, should it? I thought to create an array and save id for the open one, but I think that there must be another, quite easier way to fix this. $(document).ready(function(){ createmap(); function createmap(lat,lng){ var latlng = new google.maps.LatLng(50, 10); var myOptions = { zoom: 12, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document

Google Maps InfoBubble pixelOffset (Moving from default position above marker)

我的未来我决定 提交于 2019-12-04 08:25:13
问题 I am trying to implement a custom infoBubble that has the box opening to the side of a marker rather than the default position of on top. This has turned out to be harder than expected. Using the normal infoWindow you can use pixelOffset. See here for the documentation Using infoBubble this does not seem to be the case. Is there anyway of using pixelOffset in an infoBubble, or something that will do the same thing? I have found this very difficult to search for, as using a google search such

Google Maps InfoBubble pixelOffset (Moving from default position above marker)

感情迁移 提交于 2019-12-02 23:10:31
I am trying to implement a custom infoBubble that has the box opening to the side of a marker rather than the default position of on top. This has turned out to be harder than expected. Using the normal infoWindow you can use pixelOffset. See here for the documentation Using infoBubble this does not seem to be the case. Is there anyway of using pixelOffset in an infoBubble, or something that will do the same thing? I have found this very difficult to search for, as using a google search such as this returns no relevant results Google Search Below is all my resources I have been using. Example