Hot answers tagged


My answer is a bit late, but it might help others. I just had the same problem and I managed to find a solution. Here is an image of the result: This is my code: var style1 = new OpenLayers.Style(); var risk1 = new OpenLayers.Rule({ filter: new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.EQUAL_TO, property: "r_voie_fai", ...


I updated everything installed in the server using OSGEO4W installer, which included updating QGIS Server to 2.12.3 and now everything works like a charm! So I guess it must have been a problem in QGIS Server version 2.6.1-2.


One way would be to serve the layer from GeoServer in GeoJSON format, and on the client side digest the layer with Mapbox-GL.js, then let MapboxGL convert & render the layer as a vector tile. This is not a recommended approach for very layer vector layers, but I have had success with layers with under 10 million vertices. Check out: ...


Have you tried to use QgsMapLayerRegistry().instance().removeMapLayers( or QgsMapLayerRegistry().instance().removeMapLayers([]) instead? (Note the plural "s" at removeMapLayers) This worked for me.

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