Raruto / leaflet-elevation

Leaflet plugin that allows to add elevation profiles using d3js
GNU General Public License v3.0
255 stars 85 forks source link

Size of wptIcon #154

Closed hupe13 closed 3 years ago

hupe13 commented 3 years ago

Hi Raruto,

we have found a way to change the wptIcon, see here. But its size is hardcoded. Is it also possible to change (configure) the size?

Thank you very much.

Raruto commented 3 years ago

Hi hupe, the underlying idea is correct.

Further changes and improvements to the code are however welcome, Raruto

Raruto commented 3 years ago

Take a look at the wptIcons option (version 1.7.1).

Related code examples:

Related issues:

Greetings, Raruto

hupe13 commented 2 years ago

I tested it today and I will release it in the next version of my WordPress plugin. Thank you very much.

Raruto commented 2 years ago

👍

hupe13 commented 2 years ago

Hi Raruto,

how to deal with such a definition (Garmin): <sym>Flag, Blue</sym>? The blank character should converted to a minus sign, uppercase to lowercase, but the comma? Because of the comma it does not work.

Thank you very much.

Raruto commented 2 years ago

Hi hupe,

I think you're referring to this: https://github.com/Raruto/leaflet-elevation/blob/58c427ea87764ab62215f79750805f8eb71a0c3f/src/utils.js#L99

as you can see it is not very generic at the moment, but fortunately I am happy to evaluate resolving pull requests 😄

Have a nice day, Raruto

hupe13 commented 2 years ago

Not necessary. The comma should be escaped for css: flag\,-blue.