Places by category in words

Name a kind of place in one of five languages and find it inside the Paris outline

View on GitHub
SDK 1.0.0-rc.7

A word in the chosen language becomes pins for that kind of place inside Paris, and a word no category matches clears them and says why.

  • filters.poiCategoryQuery on discoverPlaces resolves the word in the call’s language to POI category codes, so no category lookup comes before the search.
  • The same call takes the polygon geometryData returns under geometries, and GeometriesModule with fill: { style: 'inverted' } shades everything outside it.
  • createLatestRequest retires the previous search, so a quick language switch never paints the older word.

Related examples