I want to us
GoogleMaps1
Create a mark by LocationSensor tag
And change the camera mode
I don’t know the blocks
please by blocks
I want to us
GoogleMaps1
Create a mark by LocationSensor tag
And change the camera mode
I don’t know the blocks
please by blocks
haloo eny body hear
To use Google Maps and create a marker using the LocationSensor
along with changing the camera mode, follow these steps:
LocationSensor1
component to get the current latitude and longitude of the device.LocationSensor1.LocationChanged
LocationSensor1.LocationChanged
block, use the following:
latitude
), Longitude (longitude
), and optional title and description.Example:
When LocationSensor1.LocationChanged
Do
GoogleMaps1.AddMarker(Latitude = Latitude, Longitude = Longitude)
latitude
, longitude
, and an optional zoom
level.Example:
GoogleMaps1.MoveCamera(Latitude = Latitude, Longitude = Longitude, ZoomLevel = 15)
GoogleMaps1.SetCamera
block.For a tilted camera view:
GoogleMaps1.SetCamera(Latitude, Longitude, Bearing = 0, Tilt = 45, Zoom = 15)
When LocationSensor1.LocationChanged
Do
GoogleMaps1.AddMarker(Latitude = Latitude, Longitude = Longitude)
GoogleMaps1.MoveCamera(Latitude = Latitude, Longitude = Longitude, ZoomLevel = 15)
GoogleMaps1.SetCamera(Latitude = Latitude, Longitude = Longitude, Bearing = 0, Tilt = 45, Zoom = 15)
This setup will add a marker based on the device’s current location, move the camera to that location, and adjust the camera’s angle for a more dynamic view.
Let me know if you need more details or adjustments!