I'm using openlayers v5.3.0, and actually loading a map with many markers (in the snippet are a small subset, in my code there are thousands). What i want to do is to customized those markers, styling them with differents colors and text. How c...
I did some research on labeled markers with OpenLayers 5.3. Unfortunately, I didn't get the text to work. I inserted text to the feature object. The marker with it's image is visible and works as expected, but it doesn't show any text. H...
I am trying to change the opacity of a multipolygon feature on mouseover. I am able to get the feature on mouseover and change the style but am unable to animate the process of the opacity going from 0.3 to 0.8 for example. I have read through the...
I have a feature on the map in openlayers, my requirement is to allow the user to remove the feature by right click. Here is the reference screenshots : When user clicks on "Remove", the feature should be removed. If user clicks else w...
firstly I'm new to Openlayers/JS as a whole and fairly inexperienced with programming in general so there might be other problems with my code that I'm not aware of. I am using the latest version of Openlayers (5.3.0). My program currently...
I have a polygon feature in OpenLayers 5. It has some random id which I need to show at the center of the polygon slightly right aligned. I have used the ol.style.Text() style to display the id on polygon. I can manage the alignment using the offset...
I'm trying to add a VectorLayer to an existing TileLayer, so I can place ol.geom.Point to mark places of interest. Originally this worked how I wanted - the points of interest were drawn on the TileLayer exactly where they should. Since then I&...
I would like to use the latest version of OpenLayers (5.3) in small project. The requirements are: no Node.js - I will be running thing on the site hosted on IIS, simple HTML files scripts need to be written in TypeScript ES5 I've read a lot...
I have a working map generated by this code: // create the map with the proper center var map = new ol.Map({ controls: ol.control.defaults().extend( [new ol.control.ScaleLine()] ), view: new ol.View({...
I want to add an images like vector feature to map. Now I use this code: const format = new WKT() for (let i=0; i<previews.length; i++) let vectorFeature = format.readFeature(previews[i].polygon, { dataProjection: 'EPSG:4326'...
©2020 All rights reserved.