You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gmapMarkers error on MapView plugin example in the DS Store #2
Hi there, I believe there is an error in the MapView plugin example in the DS Store.
The error is in the file _Map.html inside the function AddMarker()
Every time that a marker is added to a map, the code is supposed to add the new marker to an array called ‘gmapMarkers’. Because of the error this never happens.
Current code:
if(gmap) {
var marker = new google.maps.Marker(markerOptions);
marker.setMap(gmap);
marker.addListener("click", function() { onClickMarker(this); });
}
else gmapMarkers.push(markerOptions);
Correct code:
if(gmap) {
var marker = new google.maps.Marker(markerOptions);
marker.setMap(gmap);
marker.addListener("click", function() { onClickMarker(this); });
gmapMarkers.push(markerOptions);
}
Activity
[-]gmapMarkers error on MapView plugin[/-][+]gmapMarkers error on MapView plugin example in the DS Store[/+]