heigeo / leaflet.wms

A Leaflet plugin for working with Web Map services, providing: single-tile/untiled/nontiled layers, shared WMS sources, and GetFeatureInfo-powered identify.
http://heigeo.github.io/leaflet.wms/
MIT License
244 stars 135 forks source link

Update leaflet.wms.js #58

Open AndreaPQ opened 6 years ago

AndreaPQ commented 6 years ago

Added support for 'zIndex' and 'pane' options to wms.Overlay ( requires 'isBack' options set to null)

gregallensworth commented 4 years ago

Almost works, but with one more change as of October 14, 2020

Add to the wms.Overlay 'options' block these two lines:

        'zIndex': null,
        'pane': null,

Otherwise, these options will be treated as params and not opts down in initialize()

With this second patch, the zIndex and pane options work A-OK, and it would be great to see this merged into the main distribution.

AndreaPQ commented 3 years ago

Almost works, but with one more change as of October 14, 2020

Add to the wms.Overlay 'options' block these two lines:

        'zIndex': null,
        'pane': null,

Otherwise, these options will be treated as params and not opts down in initialize()

With this second patch, the zIndex and pane options work A-OK, and it would be great to see this merged into the main distribution.

added parameters to options block