Template:Zh OpenStreetMap Description MapOverrides: Difference between revisions

From Documentation
Jump to navigation Jump to search
 
Line 46: Line 46:
|class="zhproperty"|Popup Style||class="zhdescription"|Default Popup Style for all popups
|class="zhproperty"|Popup Style||class="zhdescription"|Default Popup Style for all popups
|-
|-
|class="zhproperty"|Date of creation format||class="zhdescription"|Date and time format for placemarks date of creation. Use PHP DateTime format<br/>For example '''jS F Y g:i a'''
|class="zhproperty"|Date of creation format||class="zhdescription"|Date and time format for placemark date of creation. Use PHP DateTime format<br/>For example '''jS F Y g:i a'''
|}
|}



Latest revision as of 14:09, 23 December 2019

Creating Map Override

This feature can help you to override static text for map objects or change its behaviour (or properties).

You can define override and use it for map by assign in map details

Override

Title Map Override Title
Description Description
Published Published
Category The category that this override is assigned to

Map

Invalidate Map Size Container Selector jQuery selector to find container where map div is located in case you need to redraw map.
For example when your map is not on an active tab and when you click to show it your map is displayed incorrectly
For example #sppb-tab1-2
Invalidate Map Size Container Index In some cases you can access to tab only by index. Index starts with 0
Invalidate Type How often invalidate map container
  • One time - only first time when container will be displayed
  • Always


Placemark

Popup Style Default Popup Style for all popups
Date of creation format Date and time format for placemark date of creation. Use PHP DateTime format
For example jS F Y g:i a

Placemarks

Cluster list Content Template Template for cluster list content

You can create your own cluster list item template

Go to /components/com_zhosmmap/templates/placemarks/cluster_list

Create your own php file with your own code. Default.php file is default template. You can copy its code and change to your own

After that your new template will be in this list

Placemark List

In this section you can define text for placemark list objects.


Button title Placemark list button title
Button tooltip text Placemark list button tooltip text
Placeholder text: Search You can override text Search in placemark list search field
Autocomplete search type Search type in case of using autocomplete feature
  • Default
  • Title and Description
Character mapping type Character mapping in case of entering search string in placemark search field with wrong keyboard layout
  • No
  • Custom - use fields synonym and character mapping
  • English-Russian (QWERTY) - predefined type, you can ask to add your own layout for your country
  • English-Macedonian (QWERTY) - predefined type
Synonym applying side Source, where synonym will be applied.
  • None
  • Search - text in search field
  • Value - title or description value
  • Both
Synonyms - accents, diacritical marks and so on Synonyms, each pair separated by comma or semicolon, in pair values separated by colon. Enter values only for lower case or if it has different symbols.
Example é:e; è:e; ê:e
Character Mapping Character mapping for wrong keyboard layout, each pair separated by comma or semicolon, in pair values separated by colon. Enter values only for lower case or if it has different symbols.
Example q:й; w:ц; e:у; r:к; t:е; y;н
But for different symbols for letter in different case `:ё; ~:Ё

Group List



Placeholder text: Search You can override text Search in placemark list search field
Autocomplete search type Search type in case of using autocomplete feature
  • Default
  • Title and Description
Character mapping type Character mapping in case of entering search string in placemark search field with wrong keyboard layout
  • No
  • Custom - use fields synonym and character mapping
  • English-Russian (QWERTY) - predefined type, you can ask to add your own layout for your country
  • English-Macedonian (QWERTY) - predefined type
Synonym applying side Source, where synonym will be applied.
  • None
  • Search - text in search field
  • Value - title or description value
  • Both
Synonyms - accents, diacritical marks and so on Synonyms, each pair separated by comma or semicolon, in pair values separated by colon. Enter values only for lower case or if it has different symbols.
Example é:e; è:e; ê:e
Character Mapping Character mapping for wrong keyboard layout, each pair separated by comma or semicolon, in pair values separated by colon. Enter values only for lower case or if it has different symbols.
Example q:й; w:ц; e:у; r:к; t:е; y;н
But for different symbols for letter in different case `:ё; ~:Ё

Button tooltip text Tooltip text for panel button
Details tab title Title for placemark details tab in panel
List tab title Title for placemark list tab in panel
Route tab title Title for route tab in panel
Groups tab title Title for groups tab in panel

Integration


Open Google Maps title Change title for link or toolbar button to open Google Maps
Geocoder placeholder text Placeholder text for text input
Geocoder error message Message when no result found or geocoding error occurs

Display