Reference for set_map_placement
Indicate where in the sketch the map view should be drawn. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
set_map_placement
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Indicate where in the sketch in terms of pixel coordinates the map view should be centered such that the map pan latitude and longitude map to this coordinate position in pixel space.
Snippet
Place the center of the map projection at x coordinate of 100 and y coordinate of 200 pixels.
sketch.set_map_placement(100, 200)
Parameters
- x: The horizontal coordinate in pixels.
- y: The vertical coordinate in pixels.
Examples
Availability
Available for all platforms.