Vector Maps localization


Topic: Vector Maps localization

jseird pro premium priority asked 4 years ago

How to change a countries title to e.g. an other language or even disable the title/countryname and only show a tooltip?


Magdalena Dembna staff premium commented 4 years ago

Right now it's only accessible via title attribute in SVG, so it's not an option for our built-in maps. I will add this request to our idea board, as it would be a useful feature. Best regards, Magdalena


jseird pro premium priority commented 4 years ago

Any developments on this already?


Grzegorz Bujański staff commented 4 years ago

Not at the moment.


jseird pro premium priority commented a year ago

still no dev on that? Wouldn't it be possible to implement that into the JS declaration of a map by extending the colormap's region object with a title that would override the title in the headline of the tooltips? this would not break the way to use the plugin, but would enable setting custom headlines / country names. Otherwise loading a custom map for each language is way to much overload I think.

new VectorMap(mapDom, { colorMap: [ { fill: '#f6f6f6', regions: [{id:'CC', title:'My Custom Countryname', tooltip:'FOO BAR'}], min: 0, max: 357 } ]});


Grzegorz Bujański staff commented a year ago

Unfortunately, at the moment the only option is to set custom SVG and set own title attribute for tooltips

https://mdbootstrap.com/docs/standard/plugins/vector-maps/#section-custom-svg


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: 2.0.0
  • Device: mac
  • Browser: safari
  • OS: macos
  • Provided sample code: No
  • Provided link: No