# Live examples on Google Maps and MapLibre

Every example by feature, each a live map with its code for HTML, a script, a bundler and React.

## [Markers and popups](/examples/markers/)

One pin, your own icons and HTML markers, place cards in popups, and a click to add one.

- [One marker](/examples/markers/simple/): The smallest map there is: one location, drawn as one marker.
- [Custom marker icons](/examples/markers/markers/): One pin for every marker, an image icon, an icon of your own markup, and a place with its own zoom.
- [HTML markers with CSS states](/examples/markers/css-markers/): Markers made of your own HTML, their hovered and selected looks in your CSS.
- [Place cards in popups](/examples/markers/popups/): A place card in each popup: photo, rating, hours, and buttons to open it in Maps or get there.
- [Click to add and drag markers](/examples/markers/click-to-add/): A click on the map adds a pin there, and every pin drags to a new place.

## [Lists and menus](/examples/lists/)

A list, a select menu, a list of your own or tabs: beside the map or on it.

- [List beside the map](/examples/lists/side-list/): The list outside the map, where it goes by default, grouped by region, with an entry for all.
- [Dropdown of places](/examples/lists/menu/): A native select on the map, grouped by region, with an entry for all.
- [Custom list](/examples/lists/custom-list/): A list of your own markup: here a radio per place, and one to fit all, on the map.
- [List with a details panel](/examples/lists/tabs/): The list outside the map; a details panel follows the selection.

## [Search and filters](/examples/search/)

Tags, nested groups, a search box, nearest first, and only what's in view.

- [Filter by tags](/examples/search/tags/): Places with several tags: tick some to see those with all of them.
- [Filter by group](/examples/search/offices/): Offices by region and country, nested in the list, with a checkbox for each region and country.
- [Search box](/examples/search/search/): A box above the list that narrows the list and the map as you type.
- [Sort by distance](/examples/search/nearest/): A button on the map that sorts the list by distance from the visitor.
- [Search this area](/examples/search/this-area/): A switch above the list: every place, or only those in view as the map moves.

## [Circles and polygons](/examples/circles-polygons/)

Circles, an editable polygon, and shapes with markers.

- [Circles](/examples/circles-polygons/circles/): Circles in their own colours, with popups; resize the third and see its radius.
- [Editable polygon](/examples/circles-polygons/polygon/): A polygon to edit: drag a corner, and the edit is written back.
- [Markers and shapes together](/examples/circles-polygons/mixed/): A marker, a circle, an area and a line on one map and in one list.

## [Lines and routes](/examples/lines-routes/)

An editable polyline, great circles, lanes by colour, and a driving route.

- [Editable polyline](/examples/lines-routes/polyline/): A polyline to edit: a trail, with places along it.
- [Flight paths](/examples/lines-routes/flights/): Great circles from one city to eight, the scheduled ones dashed; slide the flight to New York along its way.
- [Trade routes](/examples/lines-routes/trade-lanes/): Air and sea trade lanes by colour; hover one, pick one for its volume.
- [Driving route](/examples/lines-routes/route/): A drive through your own places, with directions by leg: Google computes it live; on MapLibre it's one stored route, as your own routing service would answer.

## [Clusters and heatmaps](/examples/clusters-heatmaps/)

Points clustered into badges, and a month of earthquakes as a heatmap.

- [Marker clustering](/examples/clusters-heatmaps/big/): Markers near each other clustered into one badge counting them, split apart as you zoom in.
- [Heatmaps](/examples/clusters-heatmaps/earthquakes/): A month of earthquakes as a heatmap by magnitude, dots when zoomed in, volcanoes as pins, a checkbox for each.

## [Data dashboards](/examples/dashboards/)

Cards with a period switch, shares by country, bubbles, and a choropleth.

- [Audience dashboard](/examples/dashboards/audience/): Viewers by region as cards on the map, arcs from the studio, and a period switch.
- [Share by country](/examples/dashboards/share-by-country/): Six countries in their own colours, a badge with each one's share, the list as legend.
- [Bubble map](/examples/dashboards/bubbles/): Cities as bubbles sized by population, a legend, and a count of what is in view.
- [Choropleth of the world](/examples/dashboards/choropleth/): Every country filled by its GDP per person, its value on hover, with a legend on the map.

## [Live data and loading](/examples/live-data/)

Data swapped in live, a GeoJSON layer, a map loaded on a press, and a link to a place.

- [Live data from JSON](/examples/live-data/live-data/): Data sets fetched as JSON and swapped in live: markers, an area, a circle, and on Google a route.
- [GeoJSON layer](/examples/live-data/geojson/): A GeoJSON file as the map's layer: points as markers, a line, an area, each with a popup.
- [Load the map on click](/examples/live-data/load-on-demand/): A panel in the map's place: the map loads only when the visitor presses its button.
- [Shareable link to a place](/examples/live-data/link-to-place/): A shareable link to the place picked, shown under the map, that opens the map on it.

## [Styling](/examples/styling/)

Your map's look: the provider's own styles, and Maplace.js's parts drawn your way.

- [Restyled venue map](/examples/styling/whats-on/): A dark frame, pins coloured by category, a legend that filters them and a card of the venues, or of the one picked.
- [A team around the world](/examples/styling/team/): Faces for markers, list entries of your own with each person's local time, filtered by team.
- [Map styles](/examples/styling/styled/): The provider's own map styles to choose from, and on Google the map-type control.
- [Brand colours](/examples/styling/brand/): One palette across the delivery areas, the cluster badges and the list.
- [Default styles off](/examples/styling/unstyled/): Maplace.js's styles off and nothing in their place: the map and its list as your page shows them, with no CSS but a height.
