Hot answers tagged

6 votes
Accepted

Deleting the same column(s) from different shapefiles in QGIS

A PyQGIS solution. Tested on QGIS 3.24.1-Tisler. Proceed with Plugins > Python Console > Show Editor and paste one of the scripts below. The press Run script and get the output. This approach ...
user avatar
  • 23k
3 votes

Why some layers are not available in QGIS?

If these layers are locally saved files, then either the filename has changed or the file saving path was changed - i.e. someone moved the file to another location. You must fix the correct file path. ...
user avatar
  • 40.1k
2 votes

How to snap a graphic to a vector basemap layer

It is not possible to snap to Vector Tile Layers right now. The types of layers you can snap to are defined in the type of the layer property of FeatureSnappingLayerSource: FeatureLayer GraphicsLayer ...
user avatar
  • 21
2 votes

Turn Leaflet Layers On or Off Based on Zoom Levels

What you have to do is to save created layer object to some global variable which you can then use in maps zoomend event processing function to add or remove layer from the map. Relevant part of the ...
user avatar
  • 16.7k
1 vote
Accepted

Split Polygon in one layer based on boundaries in second layer

In the processing toolbox search for Polygons to lines and convert Layer 2 into lines, then search again for Split with lines, use the lines that you have created to split Layer 1.
user avatar
  • 4,388
1 vote
Accepted

Leaflet geoJSON - function within setStyle()

Since style_new function returns style object, it must not be embedded in the object specifiers {} when you call it, so code should look like this: this.map_layer.eachLayer(function (layer: any) { ...
user avatar
  • 16.7k
1 vote
Accepted

Disable "world hillshade" layer from esri/map in JS

The definition of "topo-vector" is at https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemaps-for-others. If you don't want the hillshade you can create a ...
user avatar
1 vote

Disable "world hillshade" layer from esri/map in JS

Create your own basemap style based on the Topo Basemap with the Hillshade disabled using the ArcGIS Vector Tile Style Editor then use that in your application.
user avatar
  • 51.8k

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