🧪 Version 0.2.2 is our alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for set_map_placement

Indicate where in the sketch the map view should be drawn. This is part of the reference section.

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.

See also