Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [z-index]

Questions related to layer ordering, where z-index[0] refers to the base map and z-index[1,-1] refers to all overlay layers.

0
votes
1answer
25 views

Leaflet z-index above everything else [duplicate]

I have a problem with leaflet : the control layers are always above everything else in my webpage. Does anyone know how to fix this ? My code creating the map var src_str = component.get('v.srcPath')...
1
vote
0answers
19 views

GeoServer-Mviewer : point layers over surface layers

I am working on an interactive map designed under Mviewer package and using GeoServer to save symbols and layers. I have a specific issue on it: I managed to generate all layers correctly in my ...
0
votes
1answer
69 views

Z-index isn't working for L.tileLayer

I am having difficulty with layer order. I have 4 layers but zIndex is not working for L.tileLayer. Here's a part of my code: https://pastecode.xyz/view/d726ccb1 var overlay_Numerydziaek1 = L....
1
vote
0answers
159 views

When I should use Rtree/KdTree vs Morton z-index and s-curves?

I was always confused by those two families (?) of indexing. I feel that the first one goes with the "normal" data, while z-index and s-curves work the best for tiling/grid/uniformly distributed ...
2
votes
1answer
1k views

Control custom panes for Leaflet Geojson SVG icons

In Leaflet v1.03 I have n layers of SVG icons which should be rendered on custom panes. I try to use the panes to control the zindex of items. Within the L.geoJson options I set the pane as well as ...
0
votes
1answer
314 views

How to sequence overlapping GeoJSON using bringtoFront and/or zindex?

I currently have multiple GeoJSON polygons that overlap. I want to be able to layer them so I can click a GeoJSons a popup menu for that specific polygon to popup. Additionally, I want to have a side ...
2
votes
1answer
1k views

How to position LeafLet CircleMarkers on top of Markers

Question 1: With mapbox.js 2.3.0 (not sure what LeafLet version), are CircleMarkers supposed to go into the overlay pane by default, and Markers into the marker pane? I basically have 3 sets of ...
1
vote
1answer
337 views

Openlayers 3 - click under geolocation layer

I am using geolocation feature of Openlayers 3.13, as in the examples. (http://openlayers.org/en/v3.13.0/examples/geolocation.html) However I also have queryable point layers, and when I track the ...
3
votes
1answer
3k views

How to show label over markers on leaflet?

I need to show label over markers on leaflet to make it readable. How can I implement it? See the picture below label is overlay-ed by marker
4
votes
1answer
1k views

GeoJSON Layer Order In Leaflet 0.7.5

I am developing a web application that brings in a number of tileLayers and geoJSON layers. For the tile layers I have been able to do similar to this JSFiddle in that the layers appear depening on ...
1
vote
1answer
1k views

Leaflet - Adding another layergroup on top of a heatmap layer

Layering with z-index works when using layergroups - but is there any working way to have another layer with circles or other elements ontop of a layer with a heat-map? The heat-map seems to be ...
0
votes
2answers
1k views

Openlayers Marker z-index

I have multiple marker in one layer OpenLayers.Layer.Marker and some times the marker overlap the other marker. My question is how do I bring the marker in front when its click? is there a setZ-index ...
13
votes
5answers
17k views

Z-index in OpenLayers 3: layer ordering in OL3

Is there a method to change Z-indexes of layers in OpenLayers3 like it was in old version? map.setLayerIndex(markers, 99); //set the marker layer to an arbitrarily high layer index I need to change ...
1
vote
1answer
1k views

labels showing up behind other labels due to unmatched z-index

I am using leaflet label plugin to show labels on markers by using layer.bindLabel('name'). As the number of markers is high the markers come above the label thus labels are not visible clearly. ...
2
votes
1answer
1k views

Z-Index in GeoJSON features using leaflet

I have a watershed polygon with sub-watersheds contained within the larger watershed. I would like the sub-watersheds drawn on top. Can i control the drawing order of features within a geojson object ...
2
votes
0answers
364 views

Leaflet Marker Dragend Bug/Difficulty [closed]

I am having a problem with leaflet markers. The problem is that when I drag a marker with a lower z-index under another marker with a higher z-index and let it go, it makes another marker. I have a ...
2
votes
2answers
1k views

How does Leaflet layer ordering work with CartoDB layers?

All, I'm trying to figure out how Leaflet layer ordering works when you have layers coming from CartoDB. I have a map with 1 polygon layer (cartodb), 3 point layers (cartodb), 1 basemap layer (mapbox)...
3
votes
0answers
2k views

How can a leaflet SVG overlay be placed outside of the leaflet-overlay-pane?

I have SVG on top of GeoJSON in my map. How can a leaflet SVG overlay be placed outside of the leaflet-overlay-pane while keeping GeoJSON in place in the leaflet-overlay-pane? (For example, how could ...
1
vote
0answers
161 views

OpenLayers: How to move smaller vectors to front?

I've got a problem that's been bugging me for quite some time now. As you can see in the image below I've got som vectors that ends up beneath bigger ones, and despite all my efforts of trying to ...
3
votes
1answer
1k views

Openlayers: How to make layer come to top after choosing it in layer switcher?

I have a base layer and 3 image layers . I also have setup a layerswitcher so that user can choose which layer is to be overlayed on the base map and I have 3 sliders such that user can choose the ...
0
votes
1answer
2k views

Marker layer not responding to events in OpenLayers

I have multiple layers in OpenLayers: three vector layers, one google map layer, and a marker layer. I registered feature selected event to all three vector layers (which works fine, but btw is that a ...
1
vote
0answers
656 views

OpenLayers: How to get backgroundGraphic to go under externalGraphic

I've got a layer with nodes features on which I may want to display two images, a main one and a background one. This page : http://openlayers.org/dev/examples/marker-shadow.html shows what I want: ...
4
votes
1answer
219 views

How to reverse the drawing order of markers?

I saw this example which demonstrates how ordering can be controlled with markers added using styling options (graphicZIndex) applied to a vector layer. Due to the limitations in the combination of ...
7
votes
2answers
1k views

OpenLayers how to maintain layer ordering while using SelectFeature control

I'd like my map to display a few layers in a particular order. Some of these layers are Vectors, others are XYZs, and some of my Vector layers display attribution. Initial layer ordering works fine ...
2
votes
3answers
4k views

Change zIndex of Vectors in openlayers

I have a bunch of linestring features on a vector layer. Some of them overlap. If I trigger the hover event on those features, I want them be in front. I did find some functions to set the z-index of ...
1
vote
0answers
291 views

Leaflet Layers Control - Z-Index? [duplicate]

Possible Duplicate: How to change Leaflet Map panes layering order (z-index)? In the Leaflet Layers Control L.Control.Layers() described here, is there a way to control the z-index (layer order) ...
1
vote
1answer
757 views

How to tell SharpMap to display polygons based on z-order?

I have a series of polygons which overlap in spatialite. Each has a an attribute providing it's z-order as well as the output color for that polygon. What do I need to do, processing-wise, to allow ...
16
votes
1answer
37k views

How to change Leaflet Map panes layering order (z-index)?

Leaflet maintains that the Map panes elements contain all layers added to the map. The difference between many of the Map panes is strictly the z-index order of layering. I would like to use a ...