Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 60673

A layer is a collection of information. It contains specific elements of a gis in a specific presentation method (e.g raster or vector layer). Layers can be edited separately in order to create individual topics for a map.

1 vote

Remove details from loaded OSM-layer? - Openlayers-3

Like so: var map = new ol.Map({ target: 'map', controls: ol.control.defaults({ attribution: false }), layers: [ new ol.layer.Tile({ source: new ol.source.OSM({layer …
pavlos's user avatar
  • 3,538
1 vote

Layer selection in Openlayers 3

Its hard to find out what is wrong as long as we dont have your whole work. map.getLayers() gives back all the layers exist on map and these may be layers generated internally by ol3 for interactions etc … I would put layers, I am intersted in, into an array or an ol.collection and I would use this object then. You can always set an extra attribute when initialising your layers object. …
pavlos's user avatar
  • 3,538
18 votes

Using layer loadstart & loadend events in OpenLayers 3?

So for TILE (ol.layer.Tile) layers your code snip should look like: //declare the layer var osmLayer = new ol.layer.Tile({ source: new ol.source.OSM() }); //asign the listeners on the source of tile … </font>"; } check this post. it has all the above + a fiddle for the WFS vector layers
pavlos's user avatar
  • 3,538
2 votes
Accepted

why can't I load a layers list to select from to the map in openLayers 3, addEventListener a...

the problem comes from the way you declare layers when inisialising your map. so this piece of your code: var map = new ol.Map({ layers: [baseLayers, layerVector], loadTilesWhileInteracting: … on map is not a proper array. so concatenating the array of base layers with the vector layer, forms a proper array. …
pavlos's user avatar
  • 3,538