Skip to content

support language as a PluginParameter#12

Merged
vladest merged 2 commits intovladest:masterfrom
neolit123:language
Aug 14, 2017
Merged

support language as a PluginParameter#12
vladest merged 2 commits intovladest:masterfrom
neolit123:language

Conversation

@neolit123
Copy link
Contributor

hello,

this PR has a couple of patches:

  • support the "googlemaps.maps.language" plugin parameter to be able to pass ISO language string from QML
    if for some reason no language is set, it falls back to "en-US".
  • use the _language member variable for the Road map as well (&hl=<value of _language>)

The road map (lyrs=m) URLs support the "hl" parameter too.
If the member variable _language is passed to it, the labels
on loaded tiles would change to the language defined
as ISO 639x code - e.g. en-EN, de-DE, fr-FR.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Add support for the plugin parameter "googlemaps.maps.language".
If this parameter is present, the plugin user can specify
the prefered language of the tiles from QML - e.g:
    PluginParameter {
        name: "googlemaps.maps.language"
        value: "en-US"
    }

If the paremeter is not present, the class will try to fetch
the first UI langauge, as it was before this patch.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants