Template:Zh GoogleMap Description Placemark: Difference between revisions

From Documentation
Jump to navigation Jump to search
Line 86: Line 86:
|class="zhproperty"|URL Image||class="zhdescription"|Image URL to display in placemark
|class="zhproperty"|URL Image||class="zhdescription"|Image URL to display in placemark
|-
|-
|class="zhproperty"|Start Publishing||class="zhdescription"|Start Publishing date
|class="zhproperty"|Start Publishing||class="zhdescription"|Placemark start publishing date
|-
|-
|class="zhproperty"|Finish Publishing||class="zhdescription"|Finish Publishing date
|class="zhproperty"|Finish Publishing||class="zhdescription"|Placemark finish publishing date
|}
|}



Revision as of 12:52, 20 December 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.

On the other hand you can use Autocomplete field above map to find your place.


Placemark properties

Title Placemark Title
Description Description
Addition HTML text HTML text, that will be included in placemark

Be careful, if you enter email address, the other Joomla! plugin it changed, and there will be an error and map will not be shown. In this way, you can copy code, that produced by plugin and paste into HTML text, and in this case plugin will not change it.

Published 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
Placemark Group Placemark Group
Category The category that this placemark is assigned to



Appearance properties

Icon Type Icon Type
Marker Marker Type
  • No - Do not show marker
  • Drop - Marker with animation (Drop)
  • Bounce - Marker with animation (Bounce)
  • Simple - Marker without animation
Open InfoWin Open InfoWin immediately for this placemark
InfoWin Content Content of InfoWin
  • Title and Description
  • Title
  • Description
  • None
Action by Click Action by Click on this placemark
  • Open InfoWin
  • Open Link - link, that entered in URL Site field
  • Open Link in new page
  • None
Zoom by Click Zoom by Click on this placemark

You can change zoom when you click on marker

  • Do not change - zoom is not changed
URL Site Site URL to display in placemark
Site Name Site Name to display instead of URL
URL Image Image URL to display in placemark
Start Publishing Placemark start publishing date
Finish Publishing Placemark finish publishing date

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.