Same place category with different icons

Show places of the same category with different icons

View on GitHub
SDK 1.0.0-rc.7

Airports carry one pin in Spain, another in France and a third in Italy, all from a single POI category.

  • One PlacesModule.create per country keeps three instances apart, so PUBLIC_AIRPORT resolves to a different image in each.
  • categoryIcons takes the SVG markup inline, with no sprite sheet and no image registration.
  • show takes each country’s discoverPlaces response untouched, and bboxFromGeoJSON over all three sets the opening bounds.

Related examples