Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Use when the version you are using of the OpenLayers JavaScript client toolkit is 3 or later
1
vote
Accepted
Excluding several layers from forEachFeatureAtPixel function using OpenLayers 3?
if (layer != background1 && layer != background2)
1
vote
Deleting selected feature in OpenLayers 3?
You need to remove features from the source, not the layer. So do featureOverlay.getSource().removeFeature(feature); But since you don't get an error message, I wonder if your code gets executed at al …
1
vote
OpenLayers 3 Map center is not getting set at New Jersey
Use:
center: ol.proj.transform([-74.5, 40], 'EPSG:4326', 'EPSG:3857'),
2
votes
openlayers-3 linestring getLength not returning expected value
Use geodesic measurements, see http://openlayers.org/en/v3.4.0/examples/measure.html for an example.
1
vote
How to disable layer(not hide) in OpenLayers 3
You should be able to pass in the layers option for ol.control.Select and only pass in the layer you want to edit.
http://openlayers.org/en/v3.4.0/apidoc/ol.interaction.Select.html?unstable=true
lay …
5
votes
Accepted
Allow new tiles to be loaded while dragging map
There are two related settings on ol.Map (http://openlayers.org/en/v3.5.0/apidoc/ol.Map.html)
loadTilesWhileInteracting
loadTilesWhileAnimating
Both of which default to false. Set to true.
loa …
2
votes
Open Layers 4 fit to extent zoom too much out
Use the constrainResolution: false in the options to fit (second argument).
5
votes
How can I clear a vector layer features in OpenLayers 4?
First get the source of your layer, and then call the clear method to remove all features from the layer:
layer.getSource().clear()
2
votes
How to immediately refresh ol.source.TileWMS
Use updateParams on the source with a random parameter value.
layer.getSource().updateParams({‘ol3_salt’: Math.random()})
1
vote
How can I set brightness in openlayers 3.11....?
This is what it says in the upgrade notes:
The experimental setHue, setContrast, setBrightness, setSaturation, and the corresponding getter methods have been removed. These properties only worked wi …
5
votes
How to get current scale in OpenLayers 3
Below is a function to get the resolution from scale, you should be able to transform the other way round using the same logic:
getResolutionForScale(scale, units) {
var dpi = 25.4 / 0.28;
…
4
votes
Geoserver read only error for updating wfs layer
You need to change your geoserver settings to make your WFS transactional
3
votes
Accepted
Problem with OverviewMap control projection in Openlayers 3
Pass the overview map a view with the correct projection to use:
view: new ol.View({
projection: projection
}),
2
votes
Accepted
Modify attributes of WFS layer in OpenLayers 3
Yes WFS-T is more appropriate and can be used to edit non spatial attributes as well. Look at: http://openlayers.org/en/v3.14.2/apidoc/ol.format.WFS.html#writeTransaction on how to generate the payloa …
3
votes
Accepted
Getting zoom-in previous/next in OpenLayers 3?
You can easily hook it up to the browser's history's buttons. See: http://openlayers.org/en/latest/examples/permalink.html for an example of how to do this.