Template:Zh GoogleMap Description Placemark/ru: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
== | == Создание меток == | ||
Переходим на закладку "Placemarks". | |||
[[File:GM-Placemark-List.JPG]] | [[File:GM-Placemark-List.JPG]] | ||
Вводим необходимое количество меток с привязкой к конкретной карте. | |||
Координаты удобно выбирать путем перетаскивания метки (значения автоматически подставляются в поля формы) или кликая мышкой на необходимом месте. | |||
Также вы можете использовать поле автозаполнения над картой. | |||
[[File:GM-Placemark-Detail-Autocomplete.JPG]] | [[File:GM-Placemark-Detail-Autocomplete.JPG]] | ||
Line 15: | Line 15: | ||
=== | === Свойства метки === | ||
[[File:GM-Placemark-Detail-PlacemarkDetails.JPG]] | [[File:GM-Placemark-Detail-PlacemarkDetails.JPG]] | ||
Line 21: | Line 21: | ||
{|class="zhpropertytable" | {|class="zhpropertytable" | ||
|- | |- | ||
|class="zhproperty"|Title||class="zhdescription"| | |class="zhproperty"|Title||class="zhdescription"|Наименование метки | ||
|- | |- | ||
|class="zhproperty"|Description||class="zhdescription"| | |class="zhproperty"|Description||class="zhdescription"|Примечание | ||
|- | |- | ||
|class="zhproperty"|Addition HTML text||class="zhdescription"|HTML | |class="zhproperty"|Addition HTML text||class="zhdescription"|HTML текст, который будет включен в метку<br /> | ||
Будьте внимательны, если вы вводите email адрес, то другой плагин Joomla! его изменит, и в результате возникнет ошибка и карта не будет выведена. В этом случае вы можете скопировать код, который создался в результате работы плагина и вставить его в HTML текст, и в этом случае плагин его не поменяет. | |||
|- | |- | ||
|class="zhproperty"|Published||class="zhdescription"| | |class="zhproperty"|Published||class="zhdescription"|Признак публикации, т.е. активности записи | ||
|- | |- | ||
|class="zhproperty"|Latitude||class="zhdescription"|Latitude | |class="zhproperty"|Latitude||class="zhdescription"|Latitude |
Revision as of 17:54, 12 November 2011
Создание меток
Переходим на закладку "Placemarks".
Вводим необходимое количество меток с привязкой к конкретной карте.
Координаты удобно выбирать путем перетаскивания метки (значения автоматически подставляются в поля формы) или кликая мышкой на необходимом месте.
Также вы можете использовать поле автозаполнения над картой.
Свойства метки
Title | Наименование метки |
Description | Примечание |
Addition HTML text | HTML текст, который будет включен в метку Будьте внимательны, если вы вводите email адрес, то другой плагин Joomla! его изменит, и в результате возникнет ошибка и карта не будет выведена. В этом случае вы можете скопировать код, который создался в результате работы плагина и вставить его в HTML текст, и в этом случае плагин его не поменяет. |
Published | Признак публикации, т.е. активности записи |
Latitude | Latitude |
Longitude | Longitude |
Address | Text address of your placemark. You can load your data into this field, if you don't have lat|lng data. In this case address will be automatically geocoded and markers are displayed. And in backend marker will be shown too. But if you move marker (change position by dragging or clicking somewhere else), new positions will be stored as lat|lng. Displaying markers by lat|lng is more quick because there is no need time for geocoding |
Map Title | Title of the map, where marker would be displayed |
Icon Type | Icon Type |
Marker | Marker Type
|
Open InfoWin | Open InfoWin immediately for this placemark |
InfoWin Content | Content of InfoWin
|
Action by Click | Action by Click on this placemark
|
Zoom by Click | Zoom by Click on this placemark You can change zoom when you click on marker
|
URL Site | Site URL to display in placemark |
Site Name | Site Name to display instead URL |
URL Image | Image URL to display in placemark |
Placemark Group | Placemark Group |
Category | The category that this placemark is assigned to |
Hidden Attributes for Customization
It is for you own customization. You can enter any values in this fields, and use what you want in you code. You can rename prompt in language file
For your convenience you can also change the labels of the fields in file
/administrator/language/en-GB/en-GB.com_zhgooglemap.ini
lines
COM_ZHGOOGLEMAP_MAPMARKER_DETAIL_ATTRIBUTE1_LABEL
COM_ZHGOOGLEMAP_MAPMARKER_DETAIL_ATTRIBUTE2_LABEL
…
COM_ZHGOOGLEMAP_MAPMARKER_DETAIL_ATTRIBUTE9_LABEL
Placemark Customization
Copy your marker images (format PNG) in the directory
/administrator/components/com_zhgooglemap/assets/icons/
Component will automatically pick up the picture when choosing the type of marker.
The only requirement - the file extension have to be a .png ie in lower case, because names of images stored in a database without the extension, and it is appended in the output.
Placemark Grouping
The marker may be included in one group, for this to specify a marker belonging to the group. If the field of markers grouping is set (field value Placemark Group Control is different from No), then starts an additional feature: a list of active groups (the location is determined by this same field, with the first four (left, top, right, bottom) correspond to the table form of representation, while the two latter (Group-Map, Map-Group) - based on the div, and you have the opportunity to do anything with them.
The map also has a drop-down list Placemark Group CSS - which implements the following functionality:
- the first two styles - predefined, and are in a file in the folder
/administrator/components/com_zhgooglemap/assets/css/markergroups.css
- the third - you can override it in your css-file template
- while in three cases, just have three different names of objects, respectively, we can change the styles they like.
The following names
for the div-tag ID takes the value
- GMapsMenu-advanced
- GMapsMenu-simple
- GMapsMenu-external
for ul-tag
- zhgm-menu-advanced
- zhgm-menu-simple
- zhgm-menu-external
Accordingly, styles, prescribes for them. Field Show Placemark Group Icon is used to display icons in the list of groups.