Find code examples and learn how to build applications with step-by-step instructions.
Maps
Vector tile basemaps

Display a map
Create and display a vector tile basemap on a map.

Display a map with a basemap session
Display a map with a basemap session that lasts for 12 hours.

Change the basemap style
Switch a vector basemap style on a map.

Change language labels for basemap styles
Switch the language of place labels on a basemap.

Display a custom basemap style
Add a custom vector basemap style to a map.
Raster tile basemaps
Data
Feature layers

Add a feature layer as GeoJSON
Display and style GeoJSON features from a feature service.

Style a feature layer
Use data-driven styling to apply symbol colors and styles to feature layers.

Query a feature layer (SQL)
Execute a SQL query to access polygon features from a feature layer.

Query a feature layer (spatial)
Execute a spatial query to access polygon features from a feature service.

Display a pop-up
Display feature attributes in a popup.