Maps integration into cone using leaflet.js.
Project description
This package provides maps integration in to cone.app.
As maps library, Leaflet JS (v1.7.1) is included. It utilizes Leaflet JS.
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
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.
Changes
0.1 (2021-11-21)
Initial release. [rnix]
License
Copyright (c) 2021, Cone Contributors All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cone.maps-0.1.tar.gz
.
File metadata
- Download URL: cone.maps-0.1.tar.gz
- Upload date:
- Size: 583.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc16b2f6c0e12a3482a25ac68d92b4089e24bd7b876b5f9495f9a7b76db899d2 |
|
MD5 | e7b98156d44c896484222d2f7b0c5f10 |
|
BLAKE2b-256 | e71b4a99552876076a427d447864f55a6d7e0d1e7f28d6d861d851d81c14a14a |