Skip to content

Commit

Permalink
publishing data usage docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gioscarda committed Jun 25, 2019
1 parent bfbc786 commit 97de82d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/usage/managing_maps/exploring_maps/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ The map will automatically re-center on that area delimiting it by a polygon in

*Result of a Search*

.. _sidebar:

Sidebar Tools
-------------

Expand Down Expand Up @@ -137,6 +139,8 @@ The *Sidebar* contains the following tools:

* The *Switch to Full Screen* |full_screen_button| button allows to have a full screen map.

.. _basemap-switcher:

Basemap Switcher
----------------

Expand Down
Binary file added docs/usage/publishing_data/img/map_embed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/usage/publishing_data/img/map_url.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions docs/usage/publishing_data/index.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
Publishing Data
===============

In GeoNode, each resource can be published in order to share it with other people.
Once a *Map* has been published you can embed it in your web pages, your blog or your web site.

An easy way to accomplish that is to use an ``iframe``. See the following steps:

* Open the :ref:`map-info` page and copy the *URL*

.. figure:: img/map_url.png
:align: center

*The Map Infromation Page URL*

* Add *"/embed"* to the URL so that it will be like this *"http://master.demo.geonode.org/maps/11/embed"*

* Use this URL inside an html ``iframe`` as ``src`` value

.. code-block:: html

<iframe
style="border: none;" height="400" width="600"
src="http://master.demo.geonode.org/maps/11/embed"
></iframe>

* Put this html block of code inside your web pages to display the map.

Saving an html file with this code you can test your map on your pc, look at the following picture.

.. figure:: img/map_embed.png
:align: center

*The Embedded Map*

As you can see, some basic functionalities will be available to the user: the :ref:`toc`, the :ref:`basemap-switcher`, the :ref:`sidebar` and the :ref:`options-menu-tools`.

0 comments on commit 97de82d

Please sign in to comment.