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

Geolocation tracking with orientation example #1859

Merged
merged 1 commit into from Mar 24, 2014

Conversation

pgiraud
Copy link
Member

@pgiraud pgiraud commented Mar 14, 2014

No description provided.

@pgiraud
Copy link
Member Author

pgiraud commented Mar 14, 2014

Please review.

// only keep the 20 last coordinates
positions.setCoordinates(positions.getCoordinates().slice(-20));
// Because we modified flatCoordinates directly
positions.dispatchChangeEvent();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two lines are not needed (the flat coordinates are no longer modified directly).

@pgiraud
Copy link
Member Author

pgiraud commented Mar 24, 2014

Commit fixed up with your comments.

@twpayne
Copy link
Contributor

twpayne commented Mar 24, 2014

Many thanks!

twpayne added a commit that referenced this pull request Mar 24, 2014
Geolocation tracking with orientation example
@twpayne twpayne merged commit b613c9c into openlayers:master Mar 24, 2014
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

Successfully merging this pull request may close these issues.

None yet

3 participants