Skip to main content

DjangoCMS Mapy.cz Markers

Project description

DjangoCMS Mapy.cz Markers

The DjangoCMS Mapy.cz Markers module is a plugin for the DjangoCMS framework. It is used for displaying map with markers. Map is provided by Mapy.cz. Plugin was created on Mapy API version 4.13 – Neil Armstrong.

Usage

Plugin "Mapy.cz Markers"

The Mapy.cz Markers plugin displays a map of the Czechia. You can set the map size, location and zoom size. It is also possible to disable map controls (scroll bar and map base types) and mouse wheel zooming. By default, markers that are close to each other are automatically grouped together. This feature can also be turned off.

Plugin Mapy.cz

Plugin with cluster

Plugin "Markers"

The Marker plugin displays a marker on the map. Each marker includes the address of a point on the map and its exact location, given by latitude and longitude. When entering an address, a whisperer with a list of known addresses is displayed. When you select a marker from the list, its latitude and longitude are automatically added to the marker.

It is also possible to set the title of the tag, which is displayed as the title attribute of the icon. You can set the color of the icon or overlay it on your own.

It is possible to enter a business card in the tag. The content of a business card consists of a header, body and footer.

Plugin Marker on Mapy.cz

Panorama

If the Styl plugin with the mapycz-panorama class is inserted into the page, the Panorama link is displayed in the footer of the business card. Clicking on it will display a panorama of that point in the Style plugin (if available in the map).

Map with panorama

Plugin "Connect address with the map"

The Connect address with the map plugin can be used for two purposes.

The first purpose is a whisperer. In the Address field, enter the name of the text field for which the whisperer will display a list of known addresses. As the user starts typing an address, a list of addresses matching the one typed will be displayed. Clicking into the list causes the address to be inserted into the address field.

The second purpose is to connect to the map. It is used to set the geographic coordinates of the selected address to be inserted into the appropriate fields of the form. It is also possible to define which fields of the form represent the content of the business card.

Catuion! The plugin must be placed under the Form plugin. It uses text fields only of its superior form.

Form with address whisperer

Connect address with the map

Command "Add Mark into Mapy.cz"

With this connection to the map, saved user responses can then be inserted into the map as markers. The web editor selects user responses in the Form submissions list and sets the Add Mark into Mapy.cz action in the action list. Clicking the Go button will create markers on the map from the user submissions.

Command

Funkction form_submission_field

The form_submission_field function allows the list of submitted forms to display links to pages where the Marker specified in the submission data appears in the map.

Installation

See more in INSTALL.md.

Example

How to run the example. For more see example/HOWTO.md.

Author

Zdeněk Böhm zdenek.bohm@nic.cz CZ.NIC, z. s. p. o.

License

GPLv3+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms-mapycz-markers-1.1.0.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

djangocms_mapycz_markers-1.1.0-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file djangocms-mapycz-markers-1.1.0.tar.gz.

File metadata

File hashes

Hashes for djangocms-mapycz-markers-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3c90c1f62bd6050983c599f7a7a5a1177f62c4a6fa71a6d37593453b8c341bce
MD5 ec5869c3cddd8d300f6c493e39feda01
BLAKE2b-256 2806ca933138e5576236897c0fd87fea4584c0ed4792e6e3cf57cb7e81546052

See more details on using hashes here.

File details

Details for the file djangocms_mapycz_markers-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_mapycz_markers-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6041bb4b3052d3d28cc0ac1db6627d1e24b138b187b52cc8dd19add3d0afe44a
MD5 b6bb93f2ab02009dbe41dcf923b7e87b
BLAKE2b-256 7160c1d7291be6510768a879a1fdbff26c944a4e8dbfd9eeb7ea408f1fd42c79

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page