angular-google-maps
angular-google-maps copied to clipboard
ui-gmap-markers fit="true" consider hidden markers as well
Version
2.4
Test Case
I have added couple of makers where some of them are visible and others are invisible.
Makers made invisible by setting the property visible = false in options. Example below. var marker = { Id: obj.branchId, latitude: obj.latitude, longitude: obj.longitude, icon: obj.icon, options: { visible: false } };
Steps to reproduce
In html directive make ui-gmap-markers fit="true" and set makers in the map.
Expected Behavior
Map zoom should bound to visible makers only
Actual Behavior
Map zoom bounds to both visible and invisible markers.