Tag Info

Hot answers tagged

5

AndreJ and SS_Rebellious provide valid answers. However, there is another option which I find easier than creating the group and dragging layers in to it. You can select all the layers you want in your group (select multiple layers by holding down shift which selects everything between your first selected layer and the second one you click on, or hold ...


4

The reason you cannot edit these layers is because it is not a file. It is a map service. What you are seeing is a web service. A web service is data that is hosted on a server elsewhere, that is not your computer. Your computer is going out and getting the data live from OLIVER when you look at it in ArcMap. In this case the data you want to edit is ...


2

Right click on the empty space at TOC (Layers), choose Add group. Drag and drop layers into the created group.


2

If you right-click in the Layer's window, there should be an Add group option. Select this to create sub-sections by dragging your layers into it.


2

dflist will contain a list of the data frames in the mxd. Use index notation to access a specific data frame. The first data frame will be dflist[0], the second will be dflist[1], and so on. Edit: although, since you're looping through dflist, what you probably want to do is check the name of the data frame: if df.name == 'correctdataframe': ...


1

Rightclick on free space in the Layer panel -> Add group. This might be cumbersome if you have filled the whole panel with layers. For that reason, an icon bar has been added to the layer panel in the new QGIS 2.6. Once you have created a group, you can move layers into that group.


1

Try something like: map.getLayers().setAt(99, markers) The list of layers is in an object inheriting from an ol.Collection. See the API doc for it. Be careful, I'm pretty sure, you can't use arbitrary number like 99 in setAt: first arg is for the position in the array of layers and the second arg is for the layer element reference you want to move. To ...


1

To answer your question about grabbing the layer from a clicked feature, you can do the following: map.on(ol.MapBrowserEvent.EventType.SINGLECLICK, function (e) { map.forEachFeatureAtPixel(e.pixel, function (feature, layer) { ... }); }



Only top voted, non community-wiki answers of a minimum length are eligible