Skip to main content
Latest PyPI version Number of PyPI downloads Test cone.maps

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

Not that cone.maps defines by default no height for maps. This must be done explicitely using CSS, or via custom JS map class.

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.editable: Flag whether to include Leaflet.Editable plugin. Defaults to false.

  • cone.maps.pathdrag: Flag whether to include Path.Drag.js 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

1.1.2 (2026-10-31)

  • Extend the JS tests to 100 % coverage, all modules including bundles are loaded by the tests now. [rnix]

  • Lint and format the JS code with biome. make check runs biome check, make format runs biome check --write (see include.mk). Behavior unchanged. [rnix]

  • JS tooling: Commit pnpm-lock.yaml. Upgrade @web/test-runner to 1.0 and run the JS tests headless in Chromium via Playwright. Pin patched versions of vulnerable transitive dependencies via pnpm.overrides. [rnix]

  • Sort the imports with ruff (one per line, from imports first, no sections) and format the code with ruff format (90 characters per line, single quotes). [rnix]

  • Add import sorting (I rules) and the formatter settings to the ruff configuration in pyproject.toml. [rnix]

1.1.1 (2026-10-24)

  • Modernise the code ruff flags as outdated: u'' prefixes, .format() over f-strings. Remove unused imports. Behaviour unchanged. [rnix]

  • Add qa.ruff domain to Makefile and pin the ruff rule selection in pyproject.toml, make check runs ruff check. [rnix]

  • Pin setuptools<82.0.0 in mx.ini. pyramid 2.0.2 still imports pkg_resources, which setuptools 82 removed. [rnix]

1.1.0 (2026-02-03)

  • Refactor package layout to use pyproject.toml and implicit namespace packages. [rnix]

  • Setup Makefile. [lenadax]

  • Run tests with pytest. [lenadax]

  • Add Path.Drag.js to resources. [rnix]

  • Add Leaflet.Editable to resources. [rnix]

  • Map settings are defined via MapTile.map_settings property. [rnix]

  • Map settings gets rendered as single data attribute. [rnix]

  • Add MapTile.map_bounds property. [rnix]

  • Fix control layers creation in Map.create_controls. [rnix]

  • Implement map markers from JSON source. [rnix]

  • Implement static map markers. [rnix]

0.1 (2021-11-21)

  • Initial release. [rnix]

License

Copyright (c) 2021-2025, 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.

Metadata

Release files for cone.maps 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cone.maps 1.1.2
File Size Uploaded Provenance Actions
cone_maps-1.1.2.tar.gz 600.5 kB Without provenance Details for cone_maps-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cone.maps 1.1.2
File Interpreter ABI Platform Actions
cone_maps-1.1.2-py3-none-any.whl Python 3 none any Details for cone_maps-1.1.2-py3-none-any.whl

Total release size: 1.2 MB

Release files / cone_maps-1.1.2.tar.gz

Download URL cone_maps-1.1.2.tar.gz
Size 600.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3d1a193bc6dcaeabafc0ecc4ca45729f8c5f7679ee21b332b8415832aaa1ff1a
BLAKE2b-256 checksum
How to use checksums
4ae89da9c8a237ec15004c1f463d976ab015893869ca70ceca62ad4034469491
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / cone_maps-1.1.2-py3-none-any.whl

Download URL cone_maps-1.1.2-py3-none-any.whl
Size 616.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50221af89e281beaf2bfb10c2a8349de87e4848100f4550276fd6fb593cd51cf
BLAKE2b-256 checksum
How to use checksums
7ec7d1c4389b22dc740dbff8fb79e114d42cadd7994ed4a1107849193666dd38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Security for cone.maps 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page