Add WMS layer above geojson layer

177 views
Skip to first unread message

Brendan Stone

unread,
Jul 8, 2014, 4:43:13 AM7/8/14
to leafl...@googlegroups.com
I have a map which displays some dynamic geojson polygons as well as some static point datasets from a WMS.
The issue is that the WMS data needs to appear above the geojson.

I have tried changing the z-index for each of the layers and while I can reorder the basemap (tiles) and WMS layers fine, the geojson is always sat on top.

Is this a limitation of leaflet or do geojson layers require a different method to reorder?

Cheers.

Bryan McBride

unread,
Jul 8, 2014, 10:58:46 PM7/8/14
to leafl...@googlegroups.com

Brendan Stone

unread,
Jul 9, 2014, 3:51:56 AM7/9/14
to leafl...@googlegroups.com
Thanks Bryan, that's done the trick!
Reply all
Reply to author
Forward
0 new messages