• Resolved colinic

    (@colinic)


    I am wanting to set all my markers in an overviewmap to opacity=0.5. The docs say I can add that to the overviewmap shortcode rather than using a custom field. Since I want the same opacity for all markers that would be preferable. What is the format for that? Also, same question for the other marker options such as color?

    I’ve tried this and it doesnt work:
    [leaflet-map fitbounds]
    [overviewmap category=”Locations” show_thumbnails=1 opacity=0.5]

    Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author hupe13

    (@hupe13)

    There are typos in the documentation. leafext_marker should be leaflet-marker and leafext_extramarker should be leaflet-extramarker. I will fix it.

    [overviewmap category="Locations" show_thumbnails=1 opacity=0.5]

    If you use leaflet-marker, your code should work. But it does not ?? , it is a bug.

    Also, same question for the other marker options such as color?

    The same. Sorry.

    Thread Starter colinic

    (@colinic)

    Thanks again!

    So is this the format (when fixed) :
    [leaflet-map fitbounds]
    [overviewmap category=”Locations” show_thumbnails=1 leaflet-marker=”opacity=0.5″]

    An example of doing this would be very helpful – if you are updating the docs.

    Thanks.

    Plugin Author hupe13

    (@hupe13)

    Do you have in your setup different icons for the markers? Are you using the default marker icon or an defined one?

    Thread Starter colinic

    (@colinic)

    The default marker. I only have latlng in the custom field – called overview-latlgn (the default). The rest is as above.

    Works great apart from setting marker attributes.

    Thread Starter colinic

    (@colinic)

    PS i want all the markers the same – hence setting attributes in overviewmap?rather than in every page/post.

    Plugin Author hupe13

    (@hupe13)

    Thank you for the info. It works as expected, if you use any other marker as default and different markers for each category. I will see what I can do, if you want to use the default marker or any other as the only one.

    Thread Starter colinic

    (@colinic)

    So do you mean the marker attributes can only be set in the custom field, and not [overviewmap]?

    Plugin Author hupe13

    (@hupe13)

    You can specify options like opacity in overviewmap only, if you have specified the custom field for icons and in this specific case opacity is valid only for leaflet-marker.

    The bugs are: You can’t specify any option for the default blue marker icon. You can’t have the same leaflet-marker or leaflet-extramarker icon for all. If this is fixed, then can you specify these options in overviewmap.

    Writing a good documentation is a very difficult job. Please be patient.

    • This reply was modified 10 months, 2 weeks ago by hupe13.
    • This reply was modified 10 months, 2 weeks ago by hupe13.
    Thread Starter colinic

    (@colinic)

    I’ve tried this and I’m stuck. Sorry I realise documentation is hard. You product is great.

    Can you give me a simple example with an option such as opacity set in the overviewmap? An example with only lat and lng coming from the custom fields would be best – although if any other things have to be in custom fields then that is fine.

    Where I am at is:
    [leaflet-map fitbounds]
    [overviewmap category=”Points of Interest” show_thumbnails=1 icons=ovm-leaflet-marker opacity=0.5]
    [fullscreen]

    In custom fields I have overview-latlng and ovm-leaflet-marker set to lat,lng and an icon respectively.

    Am I close?

    Plugin Author hupe13

    (@hupe13)

    Thread Starter colinic

    (@colinic)

    Thanks so much. That really helps.

    Incidentally, if find this also works …

    [leaflet-map fitbounds]
    [overviewmap category=”Points of Interest” show_thumbnails=1 icons=ovm-leaflet-marker opacity=0.5]
    [fullscreen]

    As long as there is a custom field called ovm-leaflet-marker with ANYTHING in it. “xxx” works. You get the Leaflet default icon with opacity. My guess is that is a bug … so won’t rely on it. Maybe it helps you implement not having to have “icons=ovm-leaflet-marker”

    Thanks again.

    Plugin Author hupe13

    (@hupe13)

    I fixed it in the Github version. The next Plugins WordPress version will still take a little while.

    • This reply was modified 10 months, 2 weeks ago by hupe13.
    Thread Starter colinic

    (@colinic)

    Great – thanks so much

    Plugin Author hupe13

    (@hupe13)

    Now it works, examples.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Using opacity in overviewmap’ is closed to new replies.