Skip to main content

Questions tagged [ol-ext]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
167 views

Adding zoom to extent button to layers displayed in ol-ext LayerSwitcher in OpenLayers?

I need a LayerSwitcher with the possibility of including a "zoom to extent" button for each layer. So, searching I found the example: https://viglino.github.io/ol-ext/examples/control/map....
Andreia Gusmao's user avatar
1 vote
1 answer
40 views

Changing closeBox color of ol-ext PoupFeature in OpenLayers

I'm using the PopupFeature from the ol-ext library with Openlayers. Where can I change the color of the popup close button? var popup = new ol.Overlay.PopupFeature({ popupClass: 'default anim', ...
Andreia Gusmao's user avatar
1 vote
0 answers
288 views

Upgrading OpenLayers project to new OpenLayers version

I have a very complex project made with OpenLayers 6.15.1 integrated with the ol-ext library, I would like to switch to the latest version of OpenLayers which is currently 8.0.0 I would like to do ...
andreaordonselli's user avatar
0 votes
0 answers
306 views

ol-ext: control legend with image item - how to decrease space between items?

I'm using the example http://viglino.github.io/ol-ext/examples/legend/map.control.legend.image.html with OpenLayers to show the legend of my layers. However, I would like to decrease the space between ...
user12538529's user avatar
0 votes
1 answer
187 views

Search two properties with ol.control.SearchFeature from ol-ext library in OpenLayers?

I want to search by two columns of the database. Right now i have this code: var search = new ol.control.SearchFeature({ placeholder: 'Search', source: vectorSource, maxItems: 20, ...
need help's user avatar
1 vote
1 answer
213 views

Insert scrollbar in OpenLayers ol-ext popup?

I am using PopupFeature popup http://viglino.github.io/ol-ext/dist/ol-ext.js as per the example in http://viglino.github.io/ol-ext/examples/popup/ map.popup.feature.html. Does anyone know if it's ...
user12538529's user avatar
0 votes
0 answers
83 views

How to get extent of district when select by search nominatim

I using search nominatim function from ol-ext library. I want to get extent from search results of county or city when selecting but I haven't found the solution yet. This is my code: update // ...
Jayzz's user avatar
  • 85
0 votes
1 answer
78 views

SearchFeature in ol-ext doesn't provide with dropdown options, errorless

I'm trying to use ol-ext ol.control.SearchFeature() control to search for layer names but unsuccessful. No errors in the console at all. The modules I've imported: <link rel="stylesheet" ...
Edah Šahinović's user avatar
1 vote
1 answer
285 views

How to execute automatic click event of ol.Control.Toggle button

I'm using a button in Openlayers ol-ext ol.control.toggle In a certain event, I set this button as active, however, it does not execute the click event. Blockquote button_draw_select.setActive(true) ...
user12538529's user avatar
1 vote
1 answer
430 views

Attributes with PopupFeature: how to show all

I'm using the 'Popup Feature' popup example to show the information of my layers, with Openlayers. I'm showing two attributes in the popup: ID and NAME. But, I have several other attributes. How do I ...
user12538529's user avatar
0 votes
1 answer
627 views

Limit search in OpenLayers with Nominatim to a certain city

I'm using ol.control.SearchNominatim for address search. However, I would like to limit the search to only one country, state and city. For example: country = Brazil, state = Sao Paulo, city ​​= Sao ...
user210138's user avatar
0 votes
0 answers
417 views

How to set Control.Bar position in OpenLayers

I have a control.Bar in OpenLayers and I would like to set the position. [EDIT] I changed my code and now I can set the control in the correct position. However, if I have more than one control and I ...
user210138's user avatar
0 votes
0 answers
169 views

How to change Zoom button in PopupFeature with Openlayers?

I'm using the code https://viglino.github.io/ol-ext/examples/popup/map.popup.feature.html to create the Popup, to show the features information. As can be seen in Figure 1, we have a magnifying glass ...
user210138's user avatar
1 vote
1 answer
175 views

OpenLayers import CspLine with KML

I'm using the following code to draw ol-ext cspline in my OpenLayers project. <!-- index.html --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="...
MiracleX's user avatar
1 vote
1 answer
422 views

Multiple sources for SearchFeature in ol-ext

I am using ol-ext to add a seach field for countries to my map like this: map.addControl(new ol.control.SearchFeature({ source: countriesSource, // of type ol.source.Vector property: "Name&...
Itschotsch's user avatar
1 vote
0 answers
400 views

OpenLayers Modify interaction in freehand mode

Is there any way to enable "freehand" mode with the Modify interaction? I am looking to edit the side of a simple polygon in freehand style. Is there any way to do this in OpenLayers or ...
A. Mort's user avatar
  • 395