Title: Using opacity in overviewmap
Last modified: May 7, 2024

---

# Using opacity in overviewmap

 *  Resolved [colinic](https://wordpress.org/support/users/colinic/)
 * (@colinic)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/)
 * 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](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17737619)
 * There are typos in the [documentation](https://leafext.de/en/doku/overviewmap/).
   leafext_marker should be leaflet-marker and leafext_extramarker should be leaflet-
   extramarker. I will fix it.
 * >     ```wp-block-code
   >     [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](https://wordpress.org/support/users/colinic/)
 * (@colinic)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17737645)
 * 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](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17737850)
 * 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](https://wordpress.org/support/users/colinic/)
 * (@colinic)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17737926)
 * 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](https://wordpress.org/support/users/colinic/)
 * (@colinic)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17737933)
 * PS i want all the markers the same – hence setting attributes in overviewmap 
   rather than in every page/post.
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17737979)
 * 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](https://wordpress.org/support/users/colinic/)
 * (@colinic)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17738013)
 * So do you mean the marker attributes can only be set in the custom field, and
   not [overviewmap]?
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17738083)
 * 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 2 years, 1 month ago by [hupe13](https://wordpress.org/support/users/hupe13/).
    -  This reply was modified 2 years, 1 month ago by [hupe13](https://wordpress.org/support/users/hupe13/).
 *  Thread Starter [colinic](https://wordpress.org/support/users/colinic/)
 * (@colinic)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17738188)
 * 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](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17738254)
 * [Example](https://leafext.de/extra/leaflet-marker/)
 *  Thread Starter [colinic](https://wordpress.org/support/users/colinic/)
 * (@colinic)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17738667)
 * 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](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17742165)
 * I fixed it in the [Github version](https://github.com/hupe13/extensions-leaflet-map-github).
   The next Plugins WordPress version will still take a little while.
    -  This reply was modified 2 years, 1 month ago by [hupe13](https://wordpress.org/support/users/hupe13/).
 *  Thread Starter [colinic](https://wordpress.org/support/users/colinic/)
 * (@colinic)
 * [2 years ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17743834)
 * Great – thanks so much
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [2 years ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17749545)
 * Now it works, [examples](https://leafext.de/extra/overviewmap-marker/).

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Using opacity in overviewmap’ is closed to new replies.

 * ![](https://ps.w.org/extensions-leaflet-map/assets/icon-256x256.png?rev=3067862)
 * [Extensions for Leaflet Map](https://wordpress.org/plugins/extensions-leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extensions-leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extensions-leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/)

 * 14 replies
 * 2 participants
 * Last reply from: [hupe13](https://wordpress.org/support/users/hupe13/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/using-opacity-in-overviewmap/#post-17749545)
 * Status: resolved