Tagged Questions

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

learn more… | top users | synonyms

0
votes
0answers
2 views

Z-index in OpenLayers 3: layer ordering in OL3

Is there a method to cjange 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 and I need to ...
1
vote
1answer
115 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
0answers
164 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
65 views

Leaflet Marker Dragend Bug/Difficulty

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 ...
1
vote
1answer
198 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 ...
2
votes
0answers
656 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
59 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 ...
2
votes
1answer
217 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
813 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
307 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
110 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
577 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
2k 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 ...
0
votes
0answers
134 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 ...
1
vote
1answer
382 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 ...
5
votes
1answer
4k 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 ...