Members
(static) lang :Object
Language string lookup for example:
{
"oli": {
"baseMapsTitle": "Base maps",
"deviceLocation": {
"showLocation": "Show your location"
},
...
}
}
Type:
Methods
(inner) getLang(iShareUrl) → {Promise.<Object>}
Returns a Promise which resolves to an object containing iShare language strings in the format:
{
"oli": {
"baseMapsTitle": "Base maps",
"deviceLocation": {
"showLocation": "Show your location"
},
"fullScreen": {
"tipLabel": "Toggle full-screen"
},
"gazetteer": {
"noResults": "No results found",
"placeholder": "Search...",
"queryTooShort": "Type ${minQueryLength} or more characters for results",
"selectedOption": "${selectedOption} ${index} of ${length} is highlighted",
"resultsDescription": "Result count: ${length}. ${selectedOption}",
"assistiveHint": "When autocomplete results are available, use the up and down arrows to review and enter to select. Users of touch devices can explore by touch or with swipe gestures."
},
"layerSwitcher": {
"hideButtonTitle": "Collapse legend",
"showButtonTitle": "Show legend"
},
"historyNavigation": {
"backHtml": "⇐",
"backTitle": "Navigate back",
"forwardHtml": "⇒",
"forwardTitle": "Navigate forward"
},
"zoom": {
"zoomInTipLabel": "Zoom in",
"zoomOutTipLabel": "Zoom out"
},
"apps": {
"spotlight": {
"baseMapsTitle": "Base layer",
"gazetteer": {
"placeholder": "Partial address or postcode..."
}
}
}
}
}
Parameters:
| Name | Type | Description |
|---|---|---|
iShareUrl |
String | Base URL for iShare Web app |
Returns:
Promise which resolves to object of iShare language strings