Closed fadao23 closed 3 years ago
As you may know, the map / street view are not a HTML element. It's a native view.
I don't know the details of the Screenshot
plugin, but the screenshot plugin does not include the native view.
Please ask to the developer of the screenshot plugin for more details.
Thanks for the answer @wf9a5m75 !
Yes I doubted the problem was with the native view.
I tried another solution with the Street View Static API.
But the Static API use as parameter :
In all the event fonctions, the heading data is not able. Do you know how can I get this ?
And the events fonctions are just triggered once, when I move a second time the view, functions are not triggered. This is a normal behavior?
Thanks
The code should be like this:
panorama.on(GoogleMapsEvent.PANORAMA_CAMERA_CHANGE).subscribe(params: any[]) {
const pov: StreetViewCameraPosition = params[0];
const heading: number = pov.bearing;
const pitch: number = pov.tilt;
const zoom: number = pov.zoom;
});
Thanks @wf9a5m75 !!
This works great 👌🏼
I'm submitting a ... (check one with "x")
If you choose 'problem or bug report', please select OS: (check one with "x")
cordova information:
package.json
"@ionic-native/core": "^5.27.0",
"@ionic-native/google-maps": "^5.5.0",
Current behavior:
Actually in my app, the user can make a screenshot inside the app todo some reports. So in the iOS plateforme I can make the screenshot. But when I try in the Android I got this :
Expected behavior:
The user can take a screen of the app and user the screen to make some annotations.
Related code, data or error log (please format your code or data):
This is the streetView HTML Page
StreetView TS Page :
For the screenshot I use this plugin :
'@ionic-native/screenshot/ngx'
So why in the android plateforme I got black screen ?
Thanks 🙌🏼