Zh GoogleMap Plugin: Difference between revisions

From Documentation
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
Plugin Google page
== Installation ==
Install the plugin in Extension Manager.
Make it active.
 
== Using ==
 
=== Show Map ===
To show the map in an article, insert the following code
<pre>
{zhgooglemap:MMM}
</pre>
where
* MMM - map id. It is displayed in a map list.
 
 
=== Show Map by Placemark ===
Also, you can show the map with only one specific marker. To do this, insert the following call
<pre>
{zhgooglemap-marker:NNN}
</pre>
where
* NNN - placemark ID
 
 
=== Show map by Placemark Group ===
To show the map with markers from different maps with markers, which have a definite group) by the following call
<pre>
{zhgooglemap-group:NNN;MMM}
</pre>
where
* NNN - marker group ID
* MMM - map ID
 
 
=== Show Map by Category ===
You can show the map with markers from different maps by marker category. To do this, insert the following call
<pre>
{zhgooglemap-category:NNN;MMM}
</pre>
where
* NNN - marker category ID
* MMM - map ID
 
 
=== Show Map in Lightbox ===
To show the map in lightbox, insert the follewing code
<pre>
{zhgooglemap-lightbox:MMM;Title;Width;Height}
</pre>
where
* MMM – map id
* Title – title on link
* Width – width of lightbox-window
* Height – height of lightbox-window.
 
 
It is restriction to use some symbols. You must not use in title this symbols
<pre>
< > / \
</pre>
Map is displaying as component, not as plugin. I.e. the plugin calls the component.
There is one specialty. CSS from template not loaded.
 
 
Moreover, since it is a plugin for the content (type is content), then you can insert code to call in the Custom HTML module and display the map as a module.
It is recommended to put width=0 (which corresponds to the width: 100%), in order to map automatically fills the width of the module, and is resized (eg, a variable template size) and did not occur map oversizing.
 
 
{{img_attension}}'''Plugin does not work in contacts, because of a contact has type, that differs from "content"'''
 
 
{{img_tip}}But you have opportunity write article like contact page, as you like, and include map


{{Languages|Zh_GoogleMap_Plugin}}
{{Languages|Zh_GoogleMap_Plugin}}

Revision as of 12:08, 28 October 2011

Installation

Install the plugin in Extension Manager. Make it active.

Using

Show Map

To show the map in an article, insert the following code

{zhgooglemap:MMM}

where

  • MMM - map id. It is displayed in a map list.


Show Map by Placemark

Also, you can show the map with only one specific marker. To do this, insert the following call

{zhgooglemap-marker:NNN}

where

  • NNN - placemark ID


Show map by Placemark Group

To show the map with markers from different maps with markers, which have a definite group) by the following call

{zhgooglemap-group:NNN;MMM}

where

  • NNN - marker group ID
  • MMM - map ID


Show Map by Category

You can show the map with markers from different maps by marker category. To do this, insert the following call

{zhgooglemap-category:NNN;MMM}

where

  • NNN - marker category ID
  • MMM - map ID


Show Map in Lightbox

To show the map in lightbox, insert the follewing code

{zhgooglemap-lightbox:MMM;Title;Width;Height}

where

  • MMM – map id
  • Title – title on link
  • Width – width of lightbox-window
  • Height – height of lightbox-window.


It is restriction to use some symbols. You must not use in title this symbols

< > / \

Map is displaying as component, not as plugin. I.e. the plugin calls the component. There is one specialty. CSS from template not loaded.


Moreover, since it is a plugin for the content (type is content), then you can insert code to call in the Custom HTML module and display the map as a module. It is recommended to put width=0 (which corresponds to the width: 100%), in order to map automatically fills the width of the module, and is resized (eg, a variable template size) and did not occur map oversizing.


Template:Img attensionPlugin does not work in contacts, because of a contact has type, that differs from "content"


Template:Img tipBut you have opportunity write article like contact page, as you like, and include map

Language: English  • русский