Cool extensions for OpenLayers (ol).
-
For more information see the online API documentation.
More example for use in:
webpack
parcel
Angular
If you like this, you may like
ol-games
.
Draw points using an iconic font (font Awesome) gives you scalable vector icons that can instantly be customized (form, size, color, drop shadow) using attributes..
The ol.style.Photo is an image style to show photos or images on a map. The photos are drawn in a box and can be anchored.
This example animates features along a path.
Filter to crop or mask a map or a layer using an area (ol.feature).
Filter to add color effects on maps or layers (hue, color, grayscale, enhance...).
Example of a layer switcher control with visibility, opacity and ordering.
Example of a layer switcher control with a filter to filter layers on names.
A layer switcher integrating bars to handle layer properties and buttons.
A control to help adding WMS on your maps.
A control to help adding WMTS on your maps.
The overlay control can be used to display a menu on to of the map.
An overview map with zoom limit and custom styles. Click on the overview will center the map.
ol.control.GeoBookmark adds a control to handle geo bookmarks, ie. save places.
The ol.control.Permalink is hyperlink that will return the user to the current map view.
The ol.control.Swipe is a control that add a split screen to compare two map overlays.
The ol.control.Notification lets you show notification on the map.
The ol.control.Globe add a small globe on the map to display a position marker.
ol.control.Scale displays the current scale in a control on the map.
ol/control/FeatureList displays a list of features attributes in a list.
ol.control.Toggle is an ol.control.Button with an active/deactive state.
Example of canvas controls, ie. controls that are drawn on the canvas to use with export (jpeg/png) functions.
The ol.control.Graticule draw a graticule and coordinate labels on the map.
The ol.control.Target draw a target to materialize the center of the map.
The ol.interaction.Transform is an interaction to transform features (scale, translate, rotate).
ol.interaction.CopyPaste is an interaction to copy, cut, paste features.
ol.interaction.DrawHole is an interaction to draw holes in poglygon features.
ol.interaction.Split is an interaction to split feature geometry (ol.geom.LineString).
An interaction that acts as a split feature agent while editing vector features (LineString).
A modify interaction that support undo/redo.
ol.interaction.DrawRegular is an interaction to draw regular polygon (circle/ellipse, triangle, square/rectangles, etc).
An interaction to do something when hovering a feature (change cursor, show a popup, display information, etc.)
ol.interaction.SnapGuide handles snapping of vector features using guides lines while modifying or drawing them.
ol.interaction.Clip clip layers by a circle on the map.
ol.interaction.DropFile is a drag and drop interaction. It fires a loadstart and loadend and errors.
ol.interaction.DraOverlay is an interaction to drag overlays on the map.
ol/interaction/UndoRedo is an interaction to handle undo/redo on a map.
ol/interaction/FillAttribute is a cancelable interaction to modify attributes.
This example shows how to define action with ol/interaction/UndoRedo.
ol.control.Legend is a control to display a legend on a map.
An example to display a ol.control.Legend in a statistical map.
An example to display a ol.control.Legend with 2 columns.
Legend items can use ol/legend/Image to display an image as legend.
Legends can be associated with a layer and displayed when the layer is visible only.
A search control to search place by coordinates.
A search bar to search places using the OSM Nominatim.
A search bar to search places using the photon API.
A search bar to search French places using the French National Address Base (BAN) API.
A search bar to search French places using the Géoportail API.
A search bar to search French cadastral parcels using the Géoportail API.
ol.control.Select is a control to select features by attributes in a source.
ol.control.SelectMulti is a control container that manage other Select control.
A routing control that use the French Geoportail API.
An isochrone control that use the French Geoportail API.
This example uses a CSS to add a bounce effect to the popup display.
The overlay control can be used to display information on to of the map.
The French INSEE grid is a 2.3 million squares grid (200m x 200m) that cover the France based on lambert azimutha equal area projection (EPSG:3035).
ol/source/GeoImage georeference images on a map.
ol/source/IDW is an IDW (Inverse Distance Weighted) interpolated source.
A ol/source/DCI to display the French DFCI grid on a map as a layer.
The ol/source/DayNight display night and day on a map.
ol/source/Geoportail abd ol/layer/Geoportail handle french Geoportail layers and API key.
Add a getPreview function to ol.layer that retrieve a preview of the layer.
ol.source.Overpass is a vector source that use the Overpass API to load OSM features.
ol/source/GeoRSS is a vector source to load a GeoRSS feed.
A BDpedia tile vector layer that use RDF of the french DBpedia project.
ol.layer.WikiCommons is a tile vector layer that use Wikimedia Commons.
ol.source.Delaunay computes a Delaunay triangulation of a vector source.
The ol/interaction/GeolocationButton is a simple button to handle geolocation.
The ol.interaction.GeolocationDraw is a draw interaction that use the GPS to draw features.
The TouchCompass interaction lets you handle movement by dragging a touch compass.
The LongTouch interaction is an interaction to handle a long touch event.
An interactioon for drawing feature geometry on a touch device.
An interactioon to display a popup when modifying a feature to remove a vertex on touch devices.
An interaction specially designed to work on mobile, with a cursor to shift the finger position and lets it visible when drawing.
The ol.geom.Geometry.cspline() function smooth lines by using cardinal splines (canonical spline) to draw smooth curves that goes through the points.
The ol/geohash adds functions to convert a geohash to/from a latitude/longitude point, and to determine bounds of a geohash cell and find neighbours of a geohash.
The ol.sphere.greatCircleTrack() function computes a great circle geometry.
The ol.coordinate.convexHull() function calculates a convex hull or convex envelope, ie. the smallest polygon that contains all points of a set.
Uses convex hull to display the envelope of the points inside a cluster when cusor hovers the cluster.
Fast polygon intersection calculation with an extent.
Rough polygon intersection calculation with a circle.
Calculte statistics on a map using fast polygon intersection calculation.
ol/PerspectiveMap displays a map with a perspective effect by pitching the map.
A control with scroll-driven navigation to create narrative maps.
The ol/control/Timeline can be used to displays filter features in a time interval.
This example use a ol/control/Timeline as a time slider.
The ol/control/Imageline displays images on map as a line.
Use elevation layer to render hyspometric tints.
Add a blob interaction on your maps.
The Magnify overlay add a "magnifying glass" effect to an OL3 map that displays a portion of the map in a different zoom (and actually display different content).
The flashlight interaction add a flashlight effect on mouse move.
ol/source/OilPainting turns an image layer into artistic oil painting.
ol/filter/Poinitillism turns an image layer into artistic impressionnist pointillist painting.
The ripple interaction add a watter ripple effect on a map.
Synchronize maps and add an overlay to show mouse position.
An exemple to change colors on a VectorTile
An exemple to download data using a WFS.
A list element to synchronize with an ol.Collection.