Questions tagged [openlayers-7]

v7 specific questions on the OpenLayers mapping library

OpenLayers v7 is the latest release of the OpenLayers mapping library.

42 questions
0
votes
1 answer

Is it possible to generate extent from VectorTiles source?

I'm building an app where users can upload any map in the format of vector tiles. These maps are often small and I'd like to limit the zoom and pan, so users view will be always within the map bounds. I don't know the extent of the uploaded maps. I…
Patryk
  • 7
  • 1
0
votes
0 answers

Openlayers and rotating feature with Modify interaction

I am trying to implement feature rotation in my project. So far I have added select interaction, to select feature that needs to be rotated, and pass it to function, that contains almost all the code, that is provided in Openlayers example of how to…
0
votes
0 answers

add a Point to a renderd Vectorlayer openlayers-7

how to add a feature to a exist layer on map , openlayers-7 this is my code : I defined a vector Layer named myJson and i want to add a Point to this layer in code how can i achieve that ? const myJson = new VectorLayer({ source: new…
0
votes
1 answer

Openlayers: Loading image while layer is invisible

I'm using Openlayers 7. Is it possible to force the layer source (ImageWMS) to load a CQL filtered image, i.e. to buffer it, while the layer is not visible? I would like to avoid the image from a previous filter to flash on the map, when the filter…
user762513
  • 61
  • 3
0
votes
1 answer

Openlayers with custom Renderer, vertexShader & fragmentShader

I am looking to render some output to an openlayers map using the vertexShader & fragmentShader from the WebGL options. The long term goal is something like the effect at windy.com. I have created a CustomWebGLPointsLayer (extending…
Tom Cariello
  • 97
  • 2
  • 9
0
votes
1 answer

Stop vectorLayer from executing the style function for each feature on every change

I am working with Openlayers version 7 and I have A vectorLayer with a style function to be applied on each feature, a modify interaction with no style set that takes a selected feature to be modified, and a select interaction with a style…
BinaryHawk
  • 45
  • 6
0
votes
1 answer

OpenLayers 7 Get all features in a vector layer

I'm upgrading from a much earlier version of Openlayers, and just can't seem to figure out how to get all of the features in a vector layer. For context what my ultimate goal is, is to set the visibility on each feature based on certain data…
Morvael
  • 3,478
  • 3
  • 36
  • 53
0
votes
1 answer

Openlayers 7 - modify lineString with custom geometry style

I am working with openlayers 7 and I have a LineString with a style function that takes the LineString and makes it curved. Now i want to be able to modify this LineString feature, add, delete and drag vertices which works fine. The problem is the…
BinaryHawk
  • 45
  • 6
0
votes
0 answers

OpenLayers 7: Dragging (dragpan-mode) stuck on left-mouse single-clicking the map

The dragging-mode (dragpan-mode) gets stuck when left-mouse single-clicking the map. I can't seem to cancel the dragging (dragpanning) in any way. Wherever my mouse moves, the map goes (without me holding any buttons down). I use Vue, but that…
robtot
  • 863
  • 1
  • 9
  • 31
0
votes
1 answer

How can I disable mouseWheelZoom in OpenLayers 7?

I have just updated from OpenLayers 6 to version 7. I now get an error regarding the interactions. I want to disable the zoom so the page can be scrolled. Only when using "platformModifierKeyOnly" zooming via scroll should be possible. This is the…
obs
  • 797
  • 3
  • 14
  • 37
-1
votes
1 answer

Is there a way to change the scale of a feature after it has been placed in openlayers 7?

Is there a way to update the scale of an icon being placed on an openlayers map after it's been placed there? I have map with a marker icon on it. I'd like the user to be able to make the icon larger/smaller using a slider. I've been trying to…
user3182413
  • 59
  • 1
  • 7
1 2
3