Title: Set Default map layer?
Last modified: March 9, 2022

---

# Set Default map layer?

 *  Resolved [jddean123](https://wordpress.org/support/users/jddean123/)
 * (@jddean123)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/set-default-map-layer/)
 * I noticed that there doesn’t appear to be a default overlay layer in the Leaflet
   map. There also doesn’t appear to be a way to set the default overlay layer. 
   Did I miss something or is it not currently a feature?

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

 *  Plugin Author [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/)
 * (@uwejacobs)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/set-default-map-layer/#post-15443728)
 * This feature does currently not exist. I consider adding it in one of the upcoming
   releases.
 *  Thread Starter [jddean123](https://wordpress.org/support/users/jddean123/)
 * (@jddean123)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/set-default-map-layer/#post-15443769)
 * Thanks! Really appreciate all the hard work!
 * For reference, you just need to add the layer name in the map init:
 * var map = L.map(“owmw-map-container-304-4-3”, {
    center: new L.LatLng(42.3902,-
   122.9177), zoom: 9, layers: [osm,raincls], // The default overlay layer(s) is
   set comma delimited after the base layer scrollWheelZoom: true });
 * I spent a little bit trying to see if I could override the init, but I didn’t
   find much without getting pretty deep. I’d make the adjustment myself, but I 
   don’t want to mess with the plugin directly.
 *  Plugin Author [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/)
 * (@uwejacobs)
 * [4 years ago](https://wordpress.org/support/topic/set-default-map-layer/#post-15662217)
 * Version 5.2.2 is now capable of turning on one or more layers by default. After
   the update, please double-check your map settings.
    I also hacked up an air-temperature
   legend for Fahrenheit in case you are using the imperial measurement system.

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

The topic ‘Set Default map layer?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/owm-weather_3a88fe.svg)
 * [OWM Weather](https://wordpress.org/plugins/owm-weather/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/owm-weather/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/owm-weather/)
 * [Active Topics](https://wordpress.org/support/plugin/owm-weather/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/owm-weather/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/owm-weather/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/set-default-map-layer/#post-15662217)
 * Status: resolved