Template:Zh GoogleMap Description Placemark: Difference between revisions

From Documentation
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 40: Line 40:




== attribute 1 - attribute 9 ==
== Hidden Attributes for Customization ==
 
Fields Attribute 1 - Attribute 9


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
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
Line 89: Line 91:




The following names for the div-tag ID takes the value  
The following names  
 
for the div-tag ID takes the value  
* GMapsMenu-advanced
* GMapsMenu-advanced
* GMapsMenu-simple
* GMapsMenu-simple
Line 98: Line 102:
* zhgm-menu-simple
* zhgm-menu-simple
* zhgm-menu-external
* zhgm-menu-external
Accordingly, styles, prescribes for them. Field Show Placemark Group Icon is used to display icons in the list of groups.

Revision as of 16:29, 29 October 2011

Creating Placemark

We turn to the tab "Placemarks".

Enter the number of markers bound to a specific map.

Coordinates it is convenient to choose by dragging the marker (the value is automatically substituted in the form fields ) or by clicking the mouse on the desired location.


Title Placemark Title
Description Description
Published Published
Latitude Latitude
Longitude Longitude
Map Title Title of the map, where marker would be displayed
Icon Type Icon Type
Marker Marker Type
Open InfoWin Open InfoWin
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

Fields Attribute 1 - Attribute 9

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.