.. image:: https://img.shields.io/pypi/v/cone.maps.svg
:target: https://pypi.python.org/pypi/cone.maps
:alt: Latest PyPI version
.. image:: https://img.shields.io/pypi/dm/cone.maps.svg
:target: https://pypi.python.org/pypi/cone.maps
:alt: Number of PyPI downloads
.. image:: https://github.com/conestack/cone.maps/actions/workflows/python-package.yml/badge.svg
:target: https://github.com/conestack/cone.maps/actions/workflows/python-package.yml
:alt: Package build
.. image:: https://coveralls.io/repos/github/bluedynamics/cone.maps/badge.svg?branch=master
:target: https://coveralls.io/github/bluedynamics/cone.maps?branch=master
This package provides maps integration in to cone.app.
* As maps library, `Leaflet JS <https://leafletjs.com/>`_ (v1.7.1) is included.
* For avoiding 1px gap between tiles,
`Leaflet.TileLayer.NoGap <https://github.com/Leaflet/Leaflet.TileLayer.NoGap>`_
`(ab4f107) <https://github.com/Leaflet/Leaflet.TileLayer.NoGap/commit/ab4f107fecb80e12ffbdc4ebbedf5f85b8da7173>`_ is included.
* For geocoding,
`leaflet-geosearch <https://smeijer.github.io/leaflet-geosearch>`_
(3.5.0) is included.
* For grouping of map markers,
`Leaflet.markercluster <https://github.com/Leaflet/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 <https://github.com/Mappy/Leaflet-active-area>`_
(1.2.0) is included.
* For general CRS projection support,
`proj4js <https://github.com/proj4js/proj4js>`_ (2.7.5) and
`Proj4Leaflet <https://github.com/kartena/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.
.. code-block:: python
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.2 (2025-10-25)
----------------
- Pin upper versions of dependencies.
[rnix]
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.
Raw data
{
"_id": null,
"home_page": "http://github.com/conestack/cone.maps",
"name": "cone.maps",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "node pyramid cone web",
"author": "Cone Contributors",
"author_email": "dev@conestack.org",
"download_url": "https://files.pythonhosted.org/packages/32/59/d46cfcb92b523bcf69d4e60c91a480b14c1f5fce42a02305954f017cef09/cone_maps-0.2.tar.gz",
"platform": null,
"description": ".. image:: https://img.shields.io/pypi/v/cone.maps.svg\n :target: https://pypi.python.org/pypi/cone.maps\n :alt: Latest PyPI version\n\n.. image:: https://img.shields.io/pypi/dm/cone.maps.svg\n :target: https://pypi.python.org/pypi/cone.maps\n :alt: Number of PyPI downloads\n\n.. image:: https://github.com/conestack/cone.maps/actions/workflows/python-package.yml/badge.svg\n :target: https://github.com/conestack/cone.maps/actions/workflows/python-package.yml\n :alt: Package build\n\n.. image:: https://coveralls.io/repos/github/bluedynamics/cone.maps/badge.svg?branch=master\n :target: https://coveralls.io/github/bluedynamics/cone.maps?branch=master\n\n\nThis package provides maps integration in to cone.app.\n\n* As maps library, `Leaflet JS <https://leafletjs.com/>`_ (v1.7.1) is included.\n\n* For avoiding 1px gap between tiles,\n `Leaflet.TileLayer.NoGap <https://github.com/Leaflet/Leaflet.TileLayer.NoGap>`_\n `(ab4f107) <https://github.com/Leaflet/Leaflet.TileLayer.NoGap/commit/ab4f107fecb80e12ffbdc4ebbedf5f85b8da7173>`_ is included.\n\n* For geocoding,\n `leaflet-geosearch <https://smeijer.github.io/leaflet-geosearch>`_\n (3.5.0) is included.\n\n* For grouping of map markers,\n `Leaflet.markercluster <https://github.com/Leaflet/Leaflet.markercluster>`_\n (1.5.3) is included.\n\n* For defining active map area, e.g. if parts of a map is used as background,\n `Leaflet-active-area <https://github.com/Mappy/Leaflet-active-area>`_\n (1.2.0) is included.\n\n* For general CRS projection support,\n `proj4js <https://github.com/proj4js/proj4js>`_ (2.7.5) and\n `Proj4Leaflet <https://github.com/kartena/Proj4Leaflet>`_ (1.0.2)\n are included\n\n\nMap Widget\n----------\n\nA map widget tile is included which provides OOTB default map behavior and\ncan be used as starting point for complex custom maps.\n\n.. code-block:: python\n\n from cone.maps.browser.map import MapTile\n from cone.tile import tile\n from myplugin import MyModel\n\n @tile(name='map', interface=MyModel)\n class MyMap(MapTile):\n \"\"\"See ``cone.maps.browser.map`` for available tile options.\n \"\"\"\n\n\nResources\n---------\n\nThe following ``cone.maps`` related application configuration options are\navailable :\n\n- **cone.maps.public**: Flag whether browser resources are delivered for\n unauthenticated users. Defaults to `false`.\n\n- **cone.maps.nogap**: Flag whether to include ``Leaflet.TileLayer.NoGap``\n plugin. Defaults to `false`.\n\n- **cone.maps.geosearch**: Flag whether to include ``leaflet-geosearch``\n plugin. Defaults to `false`.\n\n- **cone.maps.markercluster**: Flag whether to include ``Leaflet.markercluster``\n plugin. Defaults to `false`.\n\n- **cone.maps.activearea**: Flag whether to include ``Leaflet-active-area``\n plugin. Defaults to `false`.\n\n- **cone.maps.proj4**: Flag whether to include ``proj4js`` and ``Proj4Leaflet``\n plugins. Defaults to `false`.\n\n\nContributors\n============\n\n- Robert Niederreiter\n\n\nTODO\n====\n\n- Default map marker rendering (from DOM elem data directly and from\n JSON endpoint)\n\n- Default map markercluster rendering (from DOM elem data directly and from\n JSON endpoint)\n\n- Geosearch on default map.\n\n- Activearea config on default map.\n\n\nChanges\n=======\n\n0.2 (2025-10-25)\n----------------\n\n- Pin upper versions of dependencies.\n [rnix]\n\n\n0.1 (2021-11-21)\n----------------\n\n- Initial release.\n [rnix]\n\n\nLicense\n=======\n\nCopyright (c) 2021, Cone Contributors\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n list of conditions and the following disclaimer in the documentation and/or\n other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
"bugtrack_url": null,
"license": "Simplified BSD",
"summary": "Maps integration into cone using leaflet.js.",
"version": "0.2",
"project_urls": {
"Homepage": "http://github.com/conestack/cone.maps"
},
"split_keywords": [
"node",
"pyramid",
"cone",
"web"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "5d46c2f610eb513adc343f794a92dbb02986c96c3df13dba4d13734f61e8a169",
"md5": "16fe8d187c173cc2165649525fc5c29b",
"sha256": "14c0972e9cc0a191d4e965e6d701a913bc36d8555d057f81c7f12db68cbb9caa"
},
"downloads": -1,
"filename": "cone_maps-0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "16fe8d187c173cc2165649525fc5c29b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 598903,
"upload_time": "2025-10-25T11:12:22",
"upload_time_iso_8601": "2025-10-25T11:12:22.646317Z",
"url": "https://files.pythonhosted.org/packages/5d/46/c2f610eb513adc343f794a92dbb02986c96c3df13dba4d13734f61e8a169/cone_maps-0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3259d46cfcb92b523bcf69d4e60c91a480b14c1f5fce42a02305954f017cef09",
"md5": "2b6cbabe223d3efacaa187708b04d4c6",
"sha256": "eb37205394cfa41e047643d22512095154129770dea3574541ffbbeba023d536"
},
"downloads": -1,
"filename": "cone_maps-0.2.tar.gz",
"has_sig": false,
"md5_digest": "2b6cbabe223d3efacaa187708b04d4c6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 585379,
"upload_time": "2025-10-25T11:12:25",
"upload_time_iso_8601": "2025-10-25T11:12:25.432786Z",
"url": "https://files.pythonhosted.org/packages/32/59/d46cfcb92b523bcf69d4e60c91a480b14c1f5fce42a02305954f017cef09/cone_maps-0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-25 11:12:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "conestack",
"github_project": "cone.maps",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "cone.maps"
}