Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
0 answers
113 views

I am using latest openlayers version. I have created layer using WebGLPointsLayer with flatstyle. I want to build functionality to where user can apply filter to filter data on map. Below are the ...
Venish Khant's user avatar
0 votes
1 answer
262 views

OpenLayers has an example on how to implement snapping support for points on a map. Though I'm investigating whether snapping is also supported for moving and snapping polygons as a whole, instead of ...
Wouter van Koppen's user avatar
-1 votes
1 answer
82 views

Using openlayer library, I want to show a list of areas which are visible on image map post zooming the map. For example, On load of image map using Openlayer library, 100 tagged areas are shown, post ...
SUSHIL THANVI's user avatar
0 votes
0 answers
152 views

I am trying to use the openlayers example to print the PDF & it is working for lower resolution prints. I am trying to fit the map to a certain polygon extent: ` map.setSize(printSize); ...
Surender Rengaraj's user avatar
0 votes
1 answer
64 views

as shown in the below posted code, i have an event #drawEvt and it is registered for drawend. the problem i have is about unregistering the event. as shown below in the code in method deattachAll() is ...
user avatar
0 votes
0 answers
220 views

I am able to print the pdf while refering to the openlayers export to pdf example, https://openlayers.org/en/latest/examples/export-pdf.html, when open street map is set as background is working fine ...
Surender Rengaraj's user avatar
0 votes
0 answers
200 views

I need to fit the image to the geometry of the feature. this is my code ( I'm using Angular 14 and openlayers 7): this.map.on('click', (e) => { const feature = map.forEachFeatureAtPixel(e....
SantiagoMoreno73's user avatar
0 votes
0 answers
72 views

I want to get the Information of the Layer and display it to the user. Here I used getFeatureInfoUrl method of OpenLayers 7 to get the URL but I am getting the BBOX,I and J values as NaN I have to get ...
Marudi Abhinaya's user avatar
0 votes
0 answers
122 views

The code working in normal JavaScript finely but in Typescript (Angular) it was throwing an error that this.map.forEachFeatureAtPixel(), this.map is undefined and cannot read properties of undefined. ...
Marudi Abhinaya's user avatar
0 votes
0 answers
77 views

I have larger sizes (more than 10GB) of microscope slides (ndpi, svs, tiff) images. To display that existing project member using the open layer 3 versions. While loading some images are converted ...
R.G.Krish's user avatar
  • 507
2 votes
2 answers
566 views

i would like to modify the below code in a such way that it only deactivate the zoom on double-click event please. i tried the below posted code, but it disabled all the interactions including the ...
Amrmsmb's user avatar
  • 11.6k
-1 votes
1 answer
163 views

I'm using OpenLayers to compare two Vector Layers. One Layer is the main layer and gets loaded with the map the other layer get's loaded after when I want to compare the 2 layers. (Desired behavior) ...
Funn_Bobby's user avatar
0 votes
0 answers
214 views

Currently I'm tasked with comparing Vector objects as they've changed over time based on the year a user selects. I've been using Open Layers Swipe as a guide https://openlayers.org/en/latest/examples/...
Funn_Bobby's user avatar
0 votes
1 answer
169 views

I'm currently using this example in my application https://openlayers.org/en/latest/examples/webgl-layer-swipe.html which overlays the left side of the map with a lay that you can extend over your ...
Funn_Bobby's user avatar
0 votes
1 answer
118 views

I'm working with Openlayers and I've implemented the layer swipe control. https://openlayers.org/en/latest/examples/webgl-layer-swipe.html I would like to have this same functionality with a line ...
Funn_Bobby's user avatar
0 votes
1 answer
234 views

I'm trying to follow an example from OpenLayers. https://openlayers.org/en/latest/examples/layer-swipe.html I've imported what I need and I'm working on implementing the example in my code but I'm ...
Funn_Bobby's user avatar
0 votes
1 answer
187 views

I am trying to convert the map with some header text. The header keeps overlapping on the map instead of being above header and displaying the map below. I want to add a log and header besides it and ...
Rushabh Gandhi's user avatar
0 votes
1 answer
313 views

I'm drawing a rectangular feature onto a map layer. I have some image pattern I want to display as a background of the feature and I want the pattern to scale with the map when zooming, meaning the ...
Jaa-c's user avatar
  • 5,167
0 votes
1 answer
117 views

I was creating a Vector source from a KML file which I read in. The file had the following LineString in it: <LineString> <coordinates>-106....
max0r's user avatar
  • 1
3 votes
2 answers
466 views

I am trying to show Map with OpenLayers library in my Angular project. The app started breaking with following error after I added Map object in my code. node_modules/ol/Geolocation.d.ts:103:5 - error ...
Nealesh's user avatar
  • 648
0 votes
2 answers
576 views

I tried to add the animated arrow one by one on the string as per the value we are entering in the text box, but it was not possible. can give me solation how I add this. I want when we enter 4 in ...
Sanjay Singh's user avatar
0 votes
1 answer
259 views

We are trying to add multiple animated arrow icon on single line string on button click like as when we click start button then add one animated arrow icon on line string and when we click again start ...
TestCode's user avatar
0 votes
2 answers
470 views

We are trying to add multiple arrow icon on single line string in this code but we are not able to add. so how we add multiple animated arrow icon on this code we also add image of your reference. ...
Sanjay Singh's user avatar
0 votes
0 answers
80 views

I'm able draw the linestring on the map based on the data but I want to draw the animated linestring as shown in attached image. Could anyone help me out for this from #openlayers community? Inside ...
Sanjay Singh's user avatar
0 votes
0 answers
235 views

I am trying to implement a functionality using openlayers with Angular in which I have to add one interaction using MouseWheelZoom. Interaction gets added but control does not come inside the event ...
user2454954's user avatar
-1 votes
1 answer
234 views

I use Draw obejct to draw default polygon. It gives the following result: polygon drawing OpenLayers As you can see, the polygon is not closed. How to close it during drawing like it works after ...
Darmaev's user avatar
  • 15
-2 votes
1 answer
130 views

I have learned a Draw object in Openlayers. I try to draw the dotted line when user moves the mouse. When user clicks the last and prev lines should be replaced on straight line. How does it work, ...
Daniella's user avatar
0 votes
1 answer
749 views

i am trying to show an overlay containing the position of where the mouse is clicked. i referred to the example in openlayers official webpage here but when i run the code, the console.log message is ...
Amrmsmb's user avatar
  • 11.6k
0 votes
1 answer
90 views

as shown below in the code, i am declaring the variable AoC and i want to assign to it the value feature.get(environment.KEY_OF_MVT_FEATURE_1). the problem i am facing, is that the variable AoC is not ...
Amrmsmb's user avatar
  • 11.6k
1 vote
2 answers
422 views

as shown in the below posted code, i create a VectorTileLayer and the VectorTileSource is MVT geometry that is retrieved from a webservice as stated in the url attribute. the database table contains ...
Amrmsmb's user avatar
  • 11.6k
0 votes
0 answers
653 views

in the below posted code, i want to pass the parameter keyGridsAsGeoJSON as input to the function in style attribute.every time i print the value of k which is var k = keyGridsAsGeoJSON i receive the ...
Amrmsmb's user avatar
  • 11.6k
0 votes
0 answers
77 views

as shown in code2, i have keygridsAsGeoJSON which contains coordinates of some features as geojson.in code1 i am using VectorTileLayer and VectorTileSource. the problem i have now is, i would like to ...
Amrmsmb's user avatar
  • 11.6k
0 votes
0 answers
137 views

I am using open layers 6 lib for map rendering and events. my application needed same like this example http://viglino.github.io/ol-ext/examples/layer/map.geoimage.html i.e. Example have ol.source....
developer g's user avatar
0 votes
0 answers
419 views

I am using open layers 6 lib for map rendering and events. my application needed same like this example http://viglino.github.io/ol-ext/examples/layer/map.geoimage.html i.e. Example have ol.source....
developer g's user avatar
0 votes
1 answer
349 views

I have this code which is complaining after upgrading to OL6.6.1 draw.on('drawend', (e: olDrawEvent) => { const format: olGeoJson = new olGeoJson(); this.shapeString = format.writeGeometry(e....
Funn_Bobby's user avatar
0 votes
1 answer
487 views

I'm upgrading to OpenLayers 6 and the code that previously worked import { MapBrowserPointerEvent as olMapBrowserPointerEvent } from 'ol/events/Event'; const simpleLineInteraction: ...
Funn_Bobby's user avatar
1 vote
1 answer
5k views

After upgrading to OpenLayers 6.6.1 I am receiving hundreds of typescript errors caused by generics. For instance... import olLayerVector from 'ol/layer/Vector'; import olFeature from 'ol/Feature'; ...
Funn_Bobby's user avatar
-1 votes
2 answers
4k views

i am following an online workshop and examples which you can find it here : https://openlayers.org/en/latest/examples/mouse-position.html in the example posted in the above mentioned link, in both of ...
Amrmsmb's user avatar
  • 11.6k
-1 votes
1 answer
73 views

I have an app that displays gps markers on the map. The coordinates are from images and they are correct, but the marking is very inaccurate. Here is my code: https://stackblitz.com/edit/angular-ivy-...
0bmis's user avatar
  • 46
0 votes
1 answer
688 views

So I saw an example of creating a polygon circle to scale. That is the actual distance from the point of interest to the how far the radius is. map.on('postrender', function (event) { const {...
Arthur Decker's user avatar
0 votes
2 answers
267 views

I'm building application using Angular and Openlayers. I have a function working on zoomend which gives me a total number of features in the current box. I'm able to get the output in console.log but ...
krishna lodha's user avatar
0 votes
1 answer
1k views

How can I set a specific projection for a Map? I am using Openlayers 6 in an Angular 10 context. The map is loaded in EPSG:3857 and I would like to use it via a projection EPSG:28992. Try 1: proj4....
tm1701's user avatar
  • 7,723
0 votes
1 answer
739 views

How can I add a simple polygon with a specific projection to my map? The polygon is valid, I checked before. coordinatesPolygonInRd = [ [ [173563, 441818], [173063, 441818], [173063, 444318], [...
tm1701's user avatar
  • 7,723
0 votes
1 answer
2k views

How can I draw a polygon on a map using Openlayers 6 and Angular 10? My component HTML file is: <div id="map" class="map"></div> The component's styling: .map { ...
tm1701's user avatar
  • 7,723
0 votes
1 answer
81 views

I'm having difficulty finding the index of this particular OpenLayers array. The array looks like this. Array(7) 0: PinchRotate {disposed_: false, pendingRemovals_: {…}, dispatching_: {…}, listeners_: ...
Funn_Bobby's user avatar
-3 votes
2 answers
660 views

I want to change the text of a place on OpenLayers map, it needs to be changed from Persian Gulf to Arabian Gulf I tried to see if there is any way I can make this change using the OpenLayers API ...
Praveen Rao Chavan.G's user avatar
1 vote
1 answer
499 views

I have problem with openlayer geojson. I'm trying to display data in the map, but nothing I try works. What do I need to change to display the data on the map? code: var map = new Map({ controls: ...
saad sarhani's user avatar
2 votes
1 answer
3k views

Error: NotYetImplemented at HTMLCanvasElement.Wo4J.exports.nyi (/path/server/main.js:1:3906285) at rj.nf (/path/server/main.js:1:1929447) at /path/server/main.js:1:1930713 at Object....
aladin marouani's user avatar
0 votes
1 answer
507 views

I am working on an Angular project, part of which involves displaying a map with a marker on the given address. I wanted to use the geocoding (and reverse) service from Here, and I followed all the ...
Vidhathri Urala's user avatar
2 votes
2 answers
2k views

I'm trying to setup an OpenLayers 6 Map in an Angular 9 component. I can successfully load the OSM source and the controls are working, but Interactions like dragging the map or zooming with the mouse ...
TNTea's user avatar
  • 53