Questions tagged [openlayers]
Use when the version you are using of the OpenLayers JavaScript client toolkit is 3 or later
3,709 questions
1
vote
0
answers
22
views
OpenLayers GeoTIFF - keep old image until the new one is ready when using setSource
I am using this type of code thant animate a temporal map based on COG images stored on a server. There is one COG URL for each time step (Ex: one COG for today, one COG for yesterday, etc.).
import ...
0
votes
0
answers
23
views
OpenLayers with geojson-vt, increase VectorTile layer resolution with renderMode: 'hybrid'
Based on the official OpenLayers example published at this address https://openlayers.org/en/latest/examples/geojson-vt.html I built my map representing the lakes of South America.
import geojsonvt ...
1
vote
0
answers
28
views
OpenLayers and South Africa Coordinate System
I'm trying to wrap my head around this datum. I found this article :
South Africa Projections
I currently have OpenLayers loading WKT string to set the projection when in an area then overlaying a ...
0
votes
1
answer
19
views
Add vector layer to OpenLayers map from GeoServer with basic auth
How to pass basic auth when I try to fetch vector layer from GeoServer? The only way I can is to point to URL, but without additional parameters for request, such auth type. The code is
const ...
1
vote
0
answers
42
views
Duplicate labels on polygons from PBF layer in OpenLayers
When polygon spans 2 tiles, OpenLayers creates 2 labels, one for each tile. How to prevent it?
MRE polygons in PBF tiles rendered by OpenLayers
In empty directory create these two files:
geom.geojson ...
0
votes
1
answer
34
views
Feature from previous zoom level doesn't disappear
I have only 2 vector tiles:
.\tilesMeta\1\0\0.pbf
.\tilesMeta\2\0\0.pbf
Each tile contains a polygon with an area ~= area of a tile.
At zoom level = 1 OpenLayers displays a big polygon as expected.
...
0
votes
0
answers
28
views
Using ol-ext's Crop filter in Cesium
I am using ol-cesium to switch between 2D (OpenLayers) and 3D (Cesium).
For a given layer I want it to show only where a certain Feature is visible. For this I am making use of ol-ext's Crop filter.
...
0
votes
1
answer
45
views
OpenLayers 9.1.0 TileArcGISRest World imagery layer is not showing properly
I'm trying to add ArcGIS REST World Imagery layer in OpenLayers.
Url is : https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}
...and works perfectly in QGIS.
...
0
votes
1
answer
39
views
Change the style of DragBox on OpenLayers 10
I am seeing that compared to OpenLayers 3, on OpenLayers 10 the DragBox selection has a different style. On OL3 the box had a red outline and a transparent interior. Now I see that it has a white ...
0
votes
1
answer
45
views
OpenLayers addcoordinatetransforms WMS
I want to overlay, in OpenLayers, an EPSG:3857 WMS map over my own WMS map, which has a user defined projection. The forward and backward transforms in the addcoordinatetransforms are working, so I ...
0
votes
1
answer
39
views
Multi select control of ol-ext in OpenLayers10
I try to get the example "Multi select control" of ol-ext to run.
I try
var selectCtrl = new ol.control.SelectMulti({
//target: $('.options').get(0),
controls: [
new control....
1
vote
0
answers
32
views
ImageDecode on tileLayer in OpenLayers
I have tiles which are the same for more then one zoom. So I load them with only one resolution with the following code:
public createTileSystemLayerGroup(systemInfo: SystemTileInfo) {
const ...
0
votes
0
answers
49
views
Clustering in OpenLayers Cesium (OlCesium)
I have an Openlayers map with a VectorImageLayer with clusters of points.
Is there some way or workaround to show the clusters in the OLCS globe when you switch from Openlayers to Cesium?
On the other ...
0
votes
1
answer
130
views
Displaying s57 file on OpenLayers map
I have an OpenLayers map and a s57 file.
How can I display all layers stored in that s57 file on my OpenLayers map?
1
vote
0
answers
62
views
How to change the WMS rotation angle with OpenLayers map
I'm using MapServer with OpenLayers to display the map.
const imageSource = new ol.source.ImageWMS({
url: 'http://127.0.0.1/cgi-bin/mapserv?map=/var/www/s57demo/data/map/SeaChart_DAY_BRIGHT.map',
...