Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bozdoz

    (@bozdoz)

    Maybe. Thing is, Leaflet marker setup accepts 6 arguments for a marker icon:

    ‘iconUrl’,
    ‘shadowUrl’,
    ‘iconSize’,
    ‘iconAnchor’,
    ‘shadowSize’, and
    ‘shadowAnchor’

    Maybe I could make a specialized popup/modal that is interactive and can help a user visualize the new marker, and set an anchor position. I believe shadowUrl is kind of non-essential. I’m just trying to think, if I do something like this, I want to do it right and not have to keep redoing it.

    What do you think? An option to set iconUrl, with an interactive way to drag the marker to its anchor? Maybe a slider to change the size of the icon? Forget about the shadow? I’m not sure. I’ll at least add the idea to the list.

    Hi! Nice pluggin!
    Jumping in, what if you give the option to use font-awesome? I know many hate it because of its size but for us who are already stuck with it is a sunk cost ??
    look at this one: https://github.com/lvoogdt/Leaflet.awesome-markers

    Plugin Author bozdoz

    (@bozdoz)

    I have a hard time with the idea of integrating other plugins; also, I think that plugin is a bit large for what it claims to do. I could easily add an SVG marker with an optional classname that could (if included) add a font-awesome icon, for example. I’ll look into it.

    Plugin Author bozdoz

    (@bozdoz)

    Here’s a JavaScript proposal: https://codepen.io/bozdoz/pen/RMoKYN?editors=0010

    I’m not sure yet what the WordPress shortcode could look like, but I can look into that later on.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘default marker iconUrl’ is closed to new replies.