Basic geometry

Show geometry around the search area

View on GitHub
SDK 1.0.0-rc.7

Schiphol Airport is geocoded by name, and its administrative outline lands on the map as a shaded polygon.

  • geocodeOne answers with a single place, so the map centre comes straight from its coordinates.
  • geometryData takes that place back as input and returns the boundary polygon, so no geometry ID crosses your code.
  • GeometriesModule.show puts the response on the map as it arrived, with no source, layer or paint expression written by hand.

Related examples