This package provides maps integration in to cone.app.
- As maps library, Leaflet JS (v1.7.1) is included.
- For avoiding 1px gap between tiles, Leaflet.TileLayer.NoGap (ab4f107) is included.
- For geocoding, leaflet-geosearch (3.5.0) is included.
- For grouping of map markers, Leaflet.markercluster (1.5.3) is included.
- For defining active map area, e.g. if parts of a map is used as background, Leaflet-active-area (1.2.0) is included.
- For general CRS projection support, proj4js (2.7.5) and Proj4Leaflet (1.0.2) are included
A map widget tile is included which provides OOTB default map behavior and can be used as starting point for complex custom maps.
from cone.maps.browser.map import MapTile
from cone.tile import tile
from myplugin import MyModel
@tile(name='map', interface=MyModel)
class MyMap(MapTile):
"""See ``cone.maps.browser.map`` for available tile options.
"""
The following cone.maps
related application configuration options are
available :
- cone.maps.public: Flag whether browser resources are delivered for unauthenticated users. Defaults to false.
- cone.maps.nogap: Flag whether to include
Leaflet.TileLayer.NoGap
plugin. Defaults to false. - cone.maps.geosearch: Flag whether to include
leaflet-geosearch
plugin. Defaults to false. - cone.maps.markercluster: Flag whether to include
Leaflet.markercluster
plugin. Defaults to false. - cone.maps.activearea: Flag whether to include
Leaflet-active-area
plugin. Defaults to false. - cone.maps.proj4: Flag whether to include
proj4js
andProj4Leaflet
plugins. Defaults to false.
- Robert Niederreiter
- Default map marker rendering (from DOM elem data directly and from JSON endpoint)
- Default map markercluster rendering (from DOM elem data directly and from JSON endpoint)
- Geosearch on default map.
- Activearea config on default map.