Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Vector Maps localization

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

Any developments on this already?


Grzegorz Bujański staff commented 4 years ago

Not at the moment.


jseird priority commented 1 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 1 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

Opened

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