GitXplorerGitXplorer
k

sphinxcontrib-openstreetmap

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
e759069255a73dc69035bae604580d6668b9478c

Do not append tag and date to the release

kkenhys committed 9 years ago
Unverified
81736b1598e17e83f57a5482f1a2210f9de130ec

Ignore egg-info

kkenhys committed 9 years ago
Unverified
e8d164f2af9cb5afc7f5bc42535d69ee0e6cd408

Bump version

kkenhys committed 9 years ago
Unverified
219e839154cf6a8de733253f18ae0b3811c025d1

Fix markup

kkenhys committed 10 years ago
Unverified
54fc7dbcc0370e358f923f5c3d8d475518a29e8f

Add zoom description

kkenhys committed 10 years ago
Unverified
28761c81cb16d4920ebda6719eb75919b8d39464

Update news

kkenhys committed 10 years ago

README

The README file for this repository.

sphinxcontrib-openstreetmap

Summary

Sphinxcontrib-openstreetmap supports to embed OpenSteetMap for your documentation easily.

Usage

Here is the simple example which shows one marker on the map.

::

.. openstreetmap:: Example OpenStreetMap :id: example_openstreetmap1 :location: 40.689249,-74.0445 :renderer: leafletjs

  "Liberty Island, New York, United States", location: 40.689249, -74.0445

This markup generates following map.

.. openstreetmap:: Example OpenStreetMap :id: example_openstreetmap1 :location: 40.689249,-74.0445 :renderer: leafletjs

"Liberty Island, New York, United States", location: 40.689249, -74.0445

Syntax

Here is the syntax of openstreetmap::

.. openstreetmap:: LABEL_FOR_MAP
   :id: UNIQUEUE_ID_FOR_DIV_TAG
   :location: LATITUDE_AND_LONGITUDE

   MARKER_1_LATITUDE_AND_LONGITUDE
   ...
   MARKER_N_LATITUDE_AND_LONGITUDE

Required parameters


``id``
``````

Specify unique id for map. This `id` is used for ``id`` of ``div`` tag in HTML.

``location``
````````````

Specify the latitude and the longitude of center point in map.

Optional parameters

renderer


The default value is ``leafletjs``.

Specify the renderer. Currently only ``leafletjs`` is supported.

``zoom``
````````

The default value is 15.

Specify the value of zoom level.
The value of zoom level must be in 0 to 19.
See `Zoom levels <http://wiki.openstreetmap.org/wiki/Zoom_levels>`_.

``zoomcontrol``

The default value is true.

Specify false if you want to disable zoom feature.

offline


The default value is ``false``.

Specify ``true`` if you want to generate offline map.
Note that offline map doesn't have fully support for zoom feature, so disable zoom feature to set ``false`` for ``zoomcontrol``.

`LABEL_FOR_MAP`

Specify the label for map. This label is shown in right bottom of map.

MARKER_X_LATITUDE_AND_LONGITUDE


`MARKER_X_LATITUDE_AND_LONGITUDE` must be following syntax::


    LABEL_TEXT, location: LATITUDE, LONGITUDE

Here is the simple example of marker::

    "Liberty Island, New York, United States", location: 40.689249, -74.0445