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
Looks like the marker is fixed position relative to the Map. This doesn't happen when I set the markers in show method. Happens only for the markers added after showing the map. I need to do this to dynamically add markers. Any one else have this problem and how did you sort this out ?
Note: After adding the markers I am calling setCenter method too..
Marker Code:
mapbox.addMarkers({
lat: latitude, // mandatory
lng: longitude, // mandatory
title: 'One-line title here', // no popup unless set
subtitle: 'Infamous subtitle!' // can't span multiple lines, so keep it short and sweet
}).then(
(result) => {
console.log("Mapbox Marker done: " + latitude + ', ' + longitude);
// this.animateCamera(latitude, longitude);
},
(error) => {console.log("Mapbox Marker error: " + error)}
);
…ably) addresses these issues:
#2 Not working
#6 Add click event on marker
#10 Cannot find variable MGLMapViewDelegate
#14 iOS Marker added using addMarkers is jumpy when zoomin in/out
#15 Map not showing on Android 5.0.1 device
…ably) addresses these issues:
#2 Not working
#6 Add click event on marker
#10 Cannot find variable MGLMapViewDelegate
#14 iOS Marker added using addMarkers is jumpy when zoomin in/out
#15 Map not showing on Android 5.0.1 device
Looks like the marker is fixed position relative to the Map. This doesn't happen when I set the markers in
show
method. Happens only for the markers added after showing the map. I need to do this to dynamically add markers. Any one else have this problem and how did you sort this out ?Note: After adding the markers I am calling
setCenter
method too..Marker Code:
Set Center Code:
The text was updated successfully, but these errors were encountered: