Topic: Vector Maps localization

jseird priority asked 3 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 commented 3 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 priority commented 3 years ago

Any developments on this already?

Grzegorz Bujański staff commented 3 years ago

Not at the moment.

jseird priority commented 8 months 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 8 months ago

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

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: 2.0.0
  • Device: mac
  • Browser: safari
  • OS: macos
  • Provided sample code: No
  • Provided link: No