API Reference#
- class ipyopenlayers.openlayers.BaseControl(*args: t.Any, **kwargs: t.Any)[source]#
BaseControl abstract class.
This is the base class for all ipyopenlayers controls. A control is additional UI components on top of the Map.
- class ipyopenlayers.openlayers.BaseOverlay(*args: t.Any, **kwargs: t.Any)[source]#
Base class for overlays on the map.
- class ipyopenlayers.openlayers.FullScreen(*args: t.Any, **kwargs: t.Any)[source]#
FullScreen class, with Control as parent class.
A control which contains a button that will put the Map in full-screen when clicked.
- class ipyopenlayers.openlayers.GeoJSON(*args: t.Any, **kwargs: t.Any)[source]#
GeoJSON class for GeoJSON data layers.
- class ipyopenlayers.openlayers.GeoTIFFTileLayer(*args: t.Any, **kwargs: t.Any)[source]#
GeoTIFFTileLayer class for WebGL-based GeoTIFF raster tiles.
- class ipyopenlayers.openlayers.GeoZarrTileLayer(*args: t.Any, **kwargs: t.Any)[source]#
GeoZarrTileLayer class for WebGL-based GeoZarr raster tiles.
- class ipyopenlayers.openlayers.HeatmapLayer(*args: t.Any, **kwargs: t.Any)[source]#
HeatmapLayer class for heatmap visualization.
- points#
A list of data points to be displayed on the heatmap, The weight determines the intensity of the heatmap at that point.
- Type:
list of lists [latitude, longitude, weight]
- class ipyopenlayers.openlayers.ImageOverlay(*args: t.Any, **kwargs: t.Any)[source]#
ImageOverlay class.
Image layer from a local or remote image file.
- image_url#
Url to the local or remote image file.
- Type:
string, default “”
- class ipyopenlayers.openlayers.Layer(*args: t.Any, **kwargs: t.Any)[source]#
Base class for all layers on the map.
- class ipyopenlayers.openlayers.Map(*args: t.Any, **kwargs: t.Any)[source]#
Map class.
The Map class is the main widget in ipyopenlayers.
- add_control(control)[source]#
Add a control on the map.
- Parameters:
control (Control instance) – The new control to add.
- add_layer(layer)[source]#
Add a layer on the map.
- Parameters:
layer (Layer instance) – The new layer to add.
- add_overlay(overlay)[source]#
Add an overlay to the map.
- Parameters:
overlay (BaseOverlay instance) – The overlay to add.
- remove_control(control)[source]#
Remove a control from the map.
- Parameters:
control (Control instance) – The control to remove.
- class ipyopenlayers.openlayers.MousePosition(*args: t.Any, **kwargs: t.Any)[source]#
MousePosition class for displaying the mouse position on the map.
- class ipyopenlayers.openlayers.PopupOverlay(*args: t.Any, **kwargs: t.Any)[source]#
PopupOverlay class.
- popup_content#
Content to display.
- Type:
string, default “”
- class ipyopenlayers.openlayers.RasterTileLayer(*args: t.Any, **kwargs: t.Any)[source]#
RasterTileLayer class for WebGL-based raster tiles.
Inherits from TileLayer and provides additional functionality for rendering raster tiles using WebGL.
- class ipyopenlayers.openlayers.ScaleLine(*args: t.Any, **kwargs: t.Any)[source]#
ScaleLine class for adding a scale line control to the map.
- class ipyopenlayers.openlayers.TileLayer(*args: t.Any, **kwargs: t.Any)[source]#
The TileLayer class serves as the foundational class for both raster and vector tile layers.
- class ipyopenlayers.openlayers.VectorTileLayer(*args: t.Any, **kwargs: t.Any)[source]#
VectorTileLayer class for vector tiles. Inherits from TileLayer and provides additional functionality for vector tiles.