Fixed
Status Update
Comments
mi...@mknwebsolutions.com <mi...@mknwebsolutions.com> #3
I had thought my report was precise enough for you to reproduce it faster than me...
Anyway, here is a link to a demo :http://nimwendil.net/_ext/gmaps/issue4052.html
Anyway, here is a link to a demo :
mi...@mknwebsolutions.com <mi...@mknwebsolutions.com> #4
This bug seems related to what I have experienced:
Draggable markers disappear after being dragged if map property is set again
Steps to reproduce:
- create a map and add a draggable marker
- add an event listener to the click event which updates the position of the marker and also sets the map attribute again
- drag the marker
- click anywhere in the map
--> the marker disappears
Demo:http://pastehtml.com/raw/bva0gduez.html
This can easily be resolved by not setting the map attribute again in the click listener.
Draggable markers disappear after being dragged if map property is set again
Steps to reproduce:
- create a map and add a draggable marker
- add an event listener to the click event which updates the position of the marker and also sets the map attribute again
- drag the marker
- click anywhere in the map
--> the marker disappears
Demo:
This can easily be resolved by not setting the map attribute again in the click listener.
mi...@mknwebsolutions.com <mi...@mknwebsolutions.com> #6
Google: this bug also breaks the very popular MarkerCluster and MarkerClustererPlus utility libraries. See Issue 4091
mi...@mknwebsolutions.com <mi...@mknwebsolutions.com> #8
Seems to work, thanks.
cb...@google.com <cb...@google.com> #9
[Comment deleted]
vi...@gmail.com <vi...@gmail.com> #10
I can confim that it is also now working for this:
marker.setMap(null)
marker.setMap(map)
marker.setAnimation(google.maps.Animation.BOUNCE)
markerSetanimation(null)
market.setMap(null)
marker.setMap(map)
Thanks for the fix!
mi...@mknwebsolutions.com <mi...@mknwebsolutions.com> #11
[Comment deleted]
mi...@mknwebsolutions.com <mi...@mknwebsolutions.com> #12
en...@google.com <en...@google.com>
mi...@mknwebsolutions.com <mi...@mknwebsolutions.com> #13
Also to note, via iPad the added markers do not popular.. Same url (http://2012dncrental.com/test.php )
cb...@google.com <cb...@google.com>
pr...@gmail.com <pr...@gmail.com> #14
Please let me know whether shadow appears now? I have shadow in the website but for the past 3 weeks shadow does not appears.
ge...@gmail.com <ge...@gmail.com> #15
There are no shadows with the visual refresh (from v3.14). Please refer to the documentation:
https://developers.google.com/maps/documentation/javascript/basics#VisualRefreshChanges
- All shadows have been removed in the visual refresh. Any shadows specified programmatically will be ignored.
- All shadows have been removed in the visual refresh. Any shadows specified programmatically will be ignored.
ru...@gmail.com <ru...@gmail.com> #16
Google map marker appears some time and then disappers in fraction of seconds why happened just like that?
Description
var loadposition = new google.maps.LatLng(<?=$feed['location'][0]?>,<?=$feed['location'][1]?>);
var markerSize = new google.maps.Size(20,34);
var houseMarker = new google.maps.MarkerImage("marker2.png",markerSize);
var markerShadowSize = new google.maps.Size(30,34);
var markerShadowPoint = new google.maps.Point(30,0);
var markerShadowAnchor = new google.maps.Point(0,35);
var houseMarkerShadow = new google.maps.MarkerImage("marker2.png",markerShadowSize,markerShadowPoint,markerShadowAnchor);
marker = new google.maps.Marker({
position:loadposition,
title:"<?=$feed['name']?>",
draggable:false,
clickable:true,
icon:houseMarker,
shadow:houseMarkerShadow
});
marker.setMap(map);
google.maps.event.addListener(marker, 'click', function(e){
var loadposition = new google.maps.LatLng(<?=$feed['location'][0]?>,<?=$feed['location'][1]?>);
var htmlContent = "<?=$feed['name']?><br/><?=$feed['address']?>";
infowindow.setPosition( loadposition );
infowindow.setContent(htmlContent);
infowindow.open(map);
});
For some reason, the shadow does not show on the map. However, If I enable drag and drop and/or set up a marker animation (either bounce or drop) the shadow shows.
I can not find any other documentation on this nor similar questions / answers.
Thanks