Skip to content

Commit

Permalink
Show Streetview images and map position icon (#334)
Browse files Browse the repository at this point in the history
* Pass right data.location.latLng to panorama setPosition

* Add missing streetviewarrow.png image
  • Loading branch information
volterra79 authored Feb 13, 2023
1 parent eb1cb2f commit 15d3241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/g3w-ol/controls/streetviewcontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ proto.setPosition = function(position) {
pitch: 0,
heading: 0
});
self._panorama.setPosition(latLng);

self._panorama.setPosition(data.location.latLng);
}
}).then(response => {
if (response === undefined) {
Expand Down
Binary file added src/assets/images/streetviewarrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 15d3241

Please sign in to comment.