Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
32 views

Open Layers WebGLTile GLSL "Hello World" Example

I'm using OpenLayers for a React project and everything is going very well. I'd like to extend the WebGLTileLayer class to eventually be able to apply GLSL to web tiles (for raster smoothing, ocean ...
Chris Jarzynka's user avatar
0 votes
0 answers
37 views

Unable to properly set zoom level on different devices via OpenLayers

I have tried everything and can't seem to figure out how to properly set the zoom levels differently on map initialization and load for different devices. The goal is to have the "United States&...
InvestedLabs's user avatar
0 votes
1 answer
18 views

How to detect openlayers features at pixel with no fill

I just upgraded to OpenLayers 10.4 from version 4.5. I need to get all features at point, where a user clicks. So I use map.forEachFeatureAtPixel(pixel, function (feature, layer) { .... })); It works ...
user3523426's user avatar
0 votes
0 answers
57 views

How to construct OpenLayers 10 Polygon

I can't seem to successfully build a Polygon in OpenLayers 10. I can't trace the code any deeper, and for the life of me, I can't find any examples of creating a Polygon for OpenLayers 10. Here's the ...
Scott Arnold's user avatar
0 votes
1 answer
48 views

Geolocation with OpenLayers

I'm working with Remix on an OpenLayers project. Utilizing navigator watchPosition, some layers and features, I can easily track the user's position, move the user's marker, and adjust the center of ...
Parker Homann's user avatar
0 votes
1 answer
85 views

Popup image on hover from inside a textBox

After a while searching for some ideas, I found this Leaflet example to show an image when the mouse hovers on a feature. However, I have a textBox (innerText) in OpenLayers showing several attributes ...
Gery's user avatar
  • 9,090
-1 votes
0 answers
22 views

How to ​Integrate Bing Maps Traffic Layer into Open Layers

I am currently developing a web application using OpenLayers and aim to integrate Bing Maps' traffic data as an overlay. While I have successfully added standard Bing Maps layers using ol.source....
BinaryBrain's user avatar
0 votes
0 answers
42 views

OpenLayers: How to prevent shapes from hiding when using declutter: true for labels?

I am using OpenLayers v7.5 to display point features with icons and labels on a VectorLayer. To prevent label overlap, I enabled declutter: true, but this causes both icons and labels to disappear in ...
BinaryBrain's user avatar
0 votes
0 answers
34 views

OpenLayers 10.3 and topojson

Starting from OpenLayers v. 10.3 I can no longer load topoJSON files which worked till 10.2.1. Here's what happens: -I made no changes in js code. A layer is configured as follows var vectorLayer =...
Alberto's user avatar
-1 votes
0 answers
61 views

How to use a local asset as a OpenLayers 10 icon?

I am trying to use a local SVG file for a marker icon in OpenLayers 10, but I can't seem to get it working. Both the options src and img don't accept the path to the asset (OL throws the error A ...
eslukas's user avatar
  • 274
1 vote
0 answers
47 views

I having trouble with both geolocation and vector features appearing at the same location but only one working at a time

I am working on a React component using OpenLayers to render a map with GeoJSON features and track the user's geolocation. The map initializes, but: The GeoJSON features do not render. Clicking &...
Maherabbas Momin's user avatar
0 votes
0 answers
126 views

How to place canvas under Openlayers layers with web workers

I am working on a project using OpenLayers with Vue3, where I have a map containing layers with features. Additionally, I have a canvas that I frequently draw on. I need the canvas to be positioned ...
chubby marschmallow's user avatar
0 votes
1 answer
59 views

React native + Open Layers can't call JS functions

I am trying to develop an OpenLayers application using react native.I have 2 projects.The first one has 2 JS functions that i want to call inside the react native project using the WebView component. ...
Tecleanu Ionut's user avatar
0 votes
0 answers
53 views

How to alter request header of XYZ (or ImageTile) source in openLayers

is there a way to alter the request headers that XYZ (or ImageTile) source sends to the server? As for now, I put the data as part of the url via tileUrlFunction, but I would prefer it not to be the ...
vojtech.osvald's user avatar
0 votes
1 answer
39 views

How to show the amount of features if a cluster is being showed

In case the point is part of a cluster (i.e. it has more than one feature), I want to show the quantity of features. I used to do it like this with a VectorLayer: const clusterSource = new Cluster({ ...
semihher's user avatar

15 30 50 per page
1
2 3 4 5
346