-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Rotate pegman marker icon and google street view panorama accordingly #344
base: dev
Are you sure you want to change the base?
Conversation
- add new listener: `google.maps.StreetViewPanorama#pov_changed` - refactor listener `google.maps.StreetviewPanorama#position_changed` (just a little bit of code clean up)
* @TODO compute intial heading evaluating it between the "openlayers" and "streetview" coordinates | ||
*/ | ||
// this._panorama.setPov({ | ||
// heading: google.maps.geometry.spherical.computeHeading(data.location.latLng, new google.maps.LatLng(this._clickLat, this._clickLng)), | ||
// pitch: 0, | ||
// zoom: 0 | ||
// }); | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
take a look at it before merging
/** | ||
* @TODO really ugly, find out a simpler way to just update the `ol.style.Icon~rotation` value | ||
*/ | ||
this.onPanoramaPositionChanged(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
take a look at it before merging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Conflicts: # src/app/core/editing/history.js
Summary
Improve end-user experience by rotating the marker arrow (on the map) in relation to what is currently displayed in the panorama container (streetview navigation).
Preview
Notable changes
google.maps.StreetViewPanorama#pov_changed
google.maps.StreetviewPanorama#position_changed
(just a little bit of code clean up)white
toyellow
(pegman marker)Closes: #337
Supersedes: #338