Zh OpenStreetMap Plugin Article Overview Map: Difference between revisions

From Documentation
Jump to navigation Jump to search
(Created page with "== Purpose == Plugin for component is created for inserting maps into articles, which has attributes for Overview Map. == Installation == Install the plugin in Extension Man...")
 
Line 20: Line 20:




=== Show Map by Placemark ===
=== Show Map ===
Also, you can show the map with only one specific placemark. To do this, insert the following call
You can show the map with only one specific placemark for an article. All attributes loaded from article custom fields, if icon is not defined - default will be used.
<pre>
<pre>
{zhosmmap-overview:NNN;Center;Zoom;MapType;Width;Height;Action}
{zhosmmap-overview:NNN;Center;Zoom;MapType;Width;Height;Action}
Line 54: Line 54:
For action you have to set Center='''placemark'''
For action you have to set Center='''placemark'''
<br />
<br />


== Restrictions ==
== Restrictions ==

Revision as of 11:24, 23 April 2020

Purpose

Plugin for component is created for inserting maps into articles, which has attributes for Overview Map.


Installation

Install the plugin in Extension Manager.

Make it active.


It is plugin for component, therefore component have to be installed

Plugin supports autoupdate feature

Using

Show Map

You can show the map with only one specific placemark for an article. All attributes loaded from article custom fields, if icon is not defined - default will be used.

{zhosmmap-overview:NNN;Center;Zoom;MapType;Width;Height;Action}

where

  • NNN - map ID, if you don't specify it, default value will be used
  • Center - map center or placemark is new center of map, valid values:
    • map
    • placemark
  • Zoom - new zoom of map, valid values
    • values from 0 to 25 to override zoom
    • do not change - do not change map zoom
  • MapType - new map type
    • OSM
    • OPENTOPOMAP
    • do not change - do not change map type
  • Width - new map width
    • width value in pixels
    • do not change - do not change map width
  • Height - new map height
    • height value in pixels
    • do not change - do not change map height
  • Action - execute action when loaded map, you can enter comma separated values
    • do not change - do not execute anything
    • click - execute click action on placemark.
    • bounce - set animation for placemark (bounce).
    • elastic bounce - set animation for placemark (elastic bounce).
    • exclusive bounce - set animation for placemark (bounce only one placemark).
    • exclusive elastic bounce - set animation for placemark (elastic bounce only one placemark).


For action you have to set Center=placemark

Restrictions

Plugin does not work in contacts, because of a contact has type, that differs from "content"

It is plugin for component, therefore component have to be installed

See also

Detail component description

Module for component



Language: English  • русский