Skip to content

Latest commit

 

History

History
103 lines (68 loc) · 3.1 KB

README.rst

File metadata and controls

103 lines (68 loc) · 3.1 KB
Latest PyPI version Number of PyPI downloads Package build https://coveralls.io/repos/github/bluedynamics/cone.maps/badge.svg?branch=master

This package provides maps integration in to cone.app.

Map Widget

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.
    """

Resources

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 and Proj4Leaflet plugins. Defaults to false.

Contributors

  • Robert Niederreiter

TODO

  • 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.