Template:Zh OpenStreetMap Description MapOverrides: Difference between revisions

From Documentation
Jump to navigation Jump to search
Line 1: Line 1:
== Creating Map Override ==
== 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


[[File:OSM-MapOverride-List.png]]
[[File:OSM-MapOverride-List.png]]


=== Override ===


[[File:OSM-MapOverride-Detail-Details.png]]
[[File:OSM-MapOverride-Detail-Details.png]]


{|class="zhpropertytable"
|-
|class="zhproperty"|Title||class="zhdescription"|Title
|-
|class="zhproperty"|Description||class="zhdescription"|Description
|-
|class="zhproperty"|Published||class="zhdescription"|Published
|-
|class="zhproperty"|Category||class="zhdescription"|The category that this override is assigned to
|}
=== Map ===


[[File:OSM-MapOverride-Detail-Map.png]]
[[File:OSM-MapOverride-Detail-Map.png]]


{|class="zhpropertytable"
|-
|class="zhproperty"|Invalidate Map Size Container Selector||class="zhdescription"|jQuery selector to find container where map div is located in case you need to redraw map.<br/>For example when your map is not on an active tab and when you click to show it your map is displayed incorrectly<br/>For example '''#sppb-tab1-2'''
|-
|class="zhproperty"|Invalidate Map Size Container Index||class="zhdescription"|In some cases you can access to tab only by index. Index starts with 0
|-
|class="zhproperty"|Invalidate Type||class="zhdescription"|How often invalidate map container
* '''One time''' - only first time when container will be displayed
* '''Always'''
|}
=== Placemark ===


[[File:OSM-MapOverride-Detail-Placemark.png]]
[[File:OSM-MapOverride-Detail-Placemark.png]]
{|class="zhpropertytable"
|-
|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 date of creation placemark. Use PHP DateTime format<br/>For example '''jS F Y g:i a'''
|}
=== Placemarks ===




[[File:OSM-MapOverride-Detail-Placemarks.png]]
[[File:OSM-MapOverride-Detail-Placemarks.png]]


{|class="zhpropertytable"
|-
|class="zhproperty"|Cluster list Content Template||class="zhdescription"|Template for cluster list content
|}
=== Placemark List ===
In this section you can define text for placemark list objects.


[[File:OSM-MapOverride-Detail-PlacemarkList-1.png]]
[[File:OSM-MapOverride-Detail-PlacemarkList-1.png]]
Line 21: Line 69:
[[File:OSM-MapOverride-Detail-PlacemarkList-2.png]]
[[File:OSM-MapOverride-Detail-PlacemarkList-2.png]]


{|class="zhpropertytable"
|-
|class="zhproperty"|Button title||class="zhdescription"|Placemark list button title
|-
|class="zhproperty"|Button tooltip text||class="zhdescription"|Placemark list button tooltip text
|-
|class="zhproperty"|Placeholder text: Search||class="zhdescription"|You can override text '''Search''' in placemark list search field
|-
|class="zhproperty"|Autocomplete search type||class="zhdescription"|Search type in case of using autocomplete feature
* '''Default'''
* '''Title and Description'''
|-
|class="zhproperty"|Character mapping type||class="zhdescription"|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
|-
|class="zhproperty"|Synonym applying side||class="zhdescription"|Source, where synonym will be applied.
* '''None'''
* '''Search''' - text in search field
* '''Value''' - title or description value
* '''Both'''
|-
|class="zhproperty"|Synonyms - accents, diacritical marks and so on||class="zhdescription"|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.<br/>Example '''é:e; è:e; ê:e'''
|-
|class="zhproperty"|Character Mapping||class="zhdescription"|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.<br/>Example '''q:й; w:ц; e:у; r:к; t:е; y;н'''<br/> But for different symbols for letter in different case '''`:ё; ~:Ё'''
|}
=== Group List ===


[[File:OSM-MapOverride-Detail-GroupList-1.png]]
[[File:OSM-MapOverride-Detail-GroupList-1.png]]
Line 27: Line 105:
[[File:OSM-MapOverride-Detail-GroupList-2.png]]
[[File:OSM-MapOverride-Detail-GroupList-2.png]]


{|class="zhpropertytable"
|-
|class="zhproperty"|Placeholder text: Search||class="zhdescription"|You can override text '''Search''' in placemark list search field
|-
|class="zhproperty"|Autocomplete search type||class="zhdescription"|Search type in case of using autocomplete feature
* '''Default'''
* '''Title and Description'''
|-
|class="zhproperty"|Character mapping type||class="zhdescription"|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
|-
|class="zhproperty"|Synonym applying side||class="zhdescription"|Source, where synonym will be applied.
* '''None'''
* '''Search''' - text in search field
* '''Value''' - title or description value
* '''Both'''
|-
|class="zhproperty"|Synonyms - accents, diacritical marks and so on||class="zhdescription"|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.<br/>Example '''é:e; è:e; ê:e'''
|-
|class="zhproperty"|Character Mapping||class="zhdescription"|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.<br/>Example '''q:й; w:ц; e:у; r:к; t:е; y;н'''<br/> But for different symbols for letter in different case '''`:ё; ~:Ё'''
|}


[[File:OSM-MapOverride-Detail-Panel.png]]
[[File:OSM-MapOverride-Detail-Panel.png]]


{|class="zhpropertytable"
|-
|class="zhproperty"|Button tooltip text||class="zhdescription"|Tooltip text for panel button
|-
|class="zhproperty"|Details tab title||class="zhdescription"|Title for placemark details tab in panel
|-
|class="zhproperty"|List tab title||class="zhdescription"|Title for placemark list tab in panel
|-
|class="zhproperty"|Route tab title||class="zhdescription"|Title for route tab in panel
|-
|class="zhproperty"|Groups tab title||class="zhdescription"|Title for groups tab in panel
|}
=== Integration ===


[[File:OSM-MapOverride-Detail-Integration.png]]
[[File:OSM-MapOverride-Detail-Integration.png]]


{|class="zhpropertytable"
|-
|class="zhproperty"|Open Google Maps title||class="zhdescription"|Change title for link or toolbar button to open Google Maps
|-
|class="zhproperty"|Geocoder placeholder text||class="zhdescription"|Placeholder text for text input
|-
|class="zhproperty"|Geocoder error message||class="zhdescription"|Message when no result found or geocoding error occurs
|}
=== Display ===


[[File:OSM-MapOverride-Detail-Display.png]]
[[File:OSM-MapOverride-Detail-Display.png]]

Revision as of 14:19, 10 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 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 date of creation placemark. Use PHP DateTime format
For example jS F Y g:i a


Placemarks

Cluster list Content Template Template for cluster list content

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