OpenLayers
76
  • Docs
    Docs
    Quick Start FAQ Tutorials Workshop
    Ask a Question
  • Examples
  • API
  • Code
    Repository Download
Drag-and-Drop Image Vector
(drag-and-drop-image-vector.html)

Example of using the drag-and-drop interaction with image vector rendering.

Advanced Mapbox Vector Tiles
(mapbox-vector-tiles-advanced.html)

Example of a Mapbox vector tiles map with custom tile grid.

Mapbox Vector Tiles
(mapbox-vector-tiles.html)

Example of a Mapbox vector tiles map.

Measure using vector styles
(measure-style.html)

Example of measuring lengths and areas using vector styles.

OGC Vector Tiles
(ogc-vector-tiles.html)

Rendering vector tiles from an OGC API – Tiles service.

OSM Vector Tiles
(osm-vector-tiles.html)

Using OpenStreetMap vector tiles.

Vector Clipping Layer
(layer-clipping-vector.html)

Vector Clipping Layer example

Vector Image Layer
(image-vector-layer.html)

Example of rendering vector data as an image layer.

Vector Layer
(vector-layer.html)

Example of a countries vector layer with country information.

Vector Layer Hit Detection
(hitdetect-vector.html)

Example of hit detection on an ecoregions vector layer with protection status.

geojson-vt integration
(geojson-vt.html)

Slice GeoJSON into vector tiles on the fly in the browser.

Mapbox Vector Layer
(mapbox-vector-layer.html)

Rendering a layer with a Mapbox-hosted style.

Vector Label Decluttering
(vector-label-decluttering.html)

Label decluttering on polygons.

Vector Labels
(vector-labels.html)

Example of GeoJSON features with labels.

Vector Tile Info
(vector-tile-info.html)

Getting feature information from vector tiles.

Vector Tile Selection
(vector-tile-selection.html)

Select features from vector tiles.

Vector tiles in EPSG:4326
(vector-tiles-4326.html)

Example showing vector tiles in EPSG:4326 (styled using ol-mapbox-style)

Vector tiles rendered in an offscreen canvas
(offscreen-canvas.html)

Example of a map that delegates rendering to a worker.

Animated GIF
(animated-gif.html)

Example of using an animated GIF as an icon.

ArcGIS REST Feature Service
(vector-esri.html)

Example of using an ArcGIS REST Feature Service with a Tile strategy.

Clustered Features
(cluster.html)

Example of using ol/source/Cluster.

Custom Animation
(feature-animation.html)

Demonstrates how to animate features.

Custom Circle Render
(custom-circle-render.html)

Example of a custom circle render.

Custom Hit Detection Render
(custom-hit-detection-renderer.html)

Example of a custom hit detection renderer.

Custom Interactions
(custom-interactions.html)

Example of a custom interaction.

Custom Polygon Styles
(polygon-styles.html)

Showing the vertices of a polygon with a custom style geometry.

Draw and Modify Features
(draw-and-modify-features.html)

Example of using the ol/interaction/Draw interaction together with the ol/interaction/Modify interaction.

Draw and Modify Geodesic Circles
(draw-and-modify-geodesic.html)

Example of using Draw and Modify interactions for geodesic circles.

Draw Features
(draw-features.html)

Example of using the ol/interaction/Draw interaction.

Draw Shapes
(draw-shapes.html)

Using the ol/interaction/Draw to create regular shapes

Dynamic clusters
(clusters-dynamic.html)

Clusters with zoom-to-cluster, hull view, and uncluttering of overlapping features.

Earthquake Clusters
(earthquake-clusters.html)

Demonstrates the use of style geometries to render source features of a cluster.

Earthquakes Heatmap
(heatmap-earthquakes.html)

Demonstrates the use of a heatmap layer.

Earthquakes in KML
(kml-earthquakes.html)

Demonstrates the use of a Shape symbolizer to render earthquake locations.

Earthquakes with custom symbols
(earthquake-custom-symbol.html)

Demonstrates the use of `toContext` to create custom icon symbols.

Editable ArcGIS REST Feature Service
(vector-esri-edit.html)

Example of using an ArcGIS REST Feature Service in an editing application.

Flight Animation
(flight-animation.html)

Demonstrates how to animate flights with ´postrender´.

Fractal Rendering
(fractal.html)

Example of a fractal.

Freehand Drawing
(draw-freehand.html)

Example using the ol/interaction/Draw interaction in freehand mode.

GeoJSON
(geojson.html)

Example of GeoJSON features.

Icon Colors
(icon-color.html)

Example assigning a custom color to an icon

Icon modification
(modify-icon.html)

Example using a Modify interaction to edit an icon.

Icon Pixel Operations
(icon-negative.html)

Canvas pixel operations on a point icon.

Icon Scale
(icon-scale.html)

Example of scaling icons and labels.

Icon Symbolizer
(icon.html)

Example using an icon to symbolize a point.

JSTS Integration
(jsts.html)

Example on how to use JSTS with OpenLayers.

KML
(kml.html)

Rendering KML with a vector source.

LineString Arrows
(line-arrows.html)

Example of drawing arrows for each line string segment.

Mapbox-gl Layer
(mapbox-layer.html)

Example of a Mapbox-gl-js layer integration.

Measure
(measure.html)

Using a draw interaction to measure lengths and areas.

Modify Features
(modify-features.html)

Editing features with the modify interaction.

Modify Features Test
(modify-test.html)

Example for testing feature modification.

OSM XML
(vector-osm.html)

Example of using the OSM XML source.

Regular Shapes
(regularshape.html)

Example of some Regular Shape styles.

Rich Text Labels
(rich-text-labels.html)

Rich text labels.

Scale and Rotate using Modify Interaction
(modify-scale-and-rotate.html)

Example of using the Modify interaction to scale and rotate geometries.

Select Features
(select-features.html)

Example of using the Select interaction.

Select Features by Hover
(select-hover-features.html)

Example of selecting features by hovering.

Select multiple Features
(select-multiple-features.html)

Example of selecting multiple features.

Snap Interaction
(snap.html)

Example of using the snap interaction together with draw and modify interactions.

Street Labels
(street-labels.html)

Render street names.

Style renderer
(style-renderer.html)

Example of a style with a custom renderer.

Styling feature with CanvasGradient or CanvasPattern
(canvas-gradient-pattern.html)

Example showing a vector layer styled with a gradient.

Synthetic Lines
(synthetic-lines.html)

Synthetic lines example.

Synthetic Points
(synthetic-points.html)

Synthetic points example.

Timezones in KML
(kml-timezones.html)

Demonstrates rendering timezones from KML.

TopoJSON
(topojson.html)

Demonstrates rendering of features from a TopoJSON topology.

topolis integration
(topolis.html)

Example on how to use topolis with OpenLayers.

Tracing around a polygon
(tracing.html)

Example of setting up a draw interaction to easily snap to an existing feature.

Translate Features
(translate-features.html)

Example of a translate features interaction.

turf.js
(turf.html)

Example on how to use turf.js with OpenLayers.

Vector tiles created from a Mapbox Style object
(mapbox-style.html)

Example of using ol-mapbox-style with tiles from maptiler.com.

WFS
(vector-wfs.html)

Example of using WFS with a BBOX strategy.

WFS - GetFeature
(vector-wfs-getfeature.html)

Example of making a WFS GetFeature request with a filter.

WFS with geographic coordinates
(vector-wfs-geographic.html)

Example of using WFS with a Tile strategy.

Wind Arrows
(wind-arrows.html)

Example of Wind Arrows styled using Regular Shapes.

title