Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Marker added using addMarkers is jumpy when zoomin in/out #14

Closed
skdeepak88 opened this issue Jun 3, 2016 · 1 comment
Closed

Comments

@skdeepak88
Copy link

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)}
);

Set Center Code:

mapbox.setCenter({
    lat: latitude,
    lng: longitude,
    animated: true
}).then(
    (result) => {
        console.log("Mapbox setCenter done: " + latitude + ', ' + longitude);
        // this.animateCamera(latitude, longitude);
    },
    (error) => {console.log("mapbox setCenter error: " + error)}
);
EddyVerbruggen added a commit that referenced this issue Jul 8, 2016
…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
@EddyVerbruggen
Copy link
Collaborator

I think this was a problem with the Mapbox SDK. Shouldn't happen in more recent versions.

EddyVerbruggen added a commit that referenced this issue Apr 18, 2017
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants