1,009 reputation
37
bio website boundlessgeo.com
location
age
visits member for 2 years, 5 months
seen yesterday

Dec
17
awarded  Critic
Dec
17
comment Retrieve attributes from a GeoJSON feature in openlayers 3
In this case the solution is correct, but the explanation is misleading. See my comment on Andreas Finn's post below.
Dec
17
comment Retrieve attributes from a GeoJSON feature in openlayers 3
Your GeoJSON does not have an id for a feature. See b-eyes's answer below. What your GeoJSON has is features with two attributes, 'id' and 'sovereignt'. So you'll have to use feature.get('id').
Dec
17
comment Retrieve attributes from a GeoJSON feature in openlayers 3
Correct. The id in the above snippet will be returned with feature.getId().
Dec
17
comment Retrieve attributes from a GeoJSON feature in openlayers 3
This is incorrect. feature.getId() does not return an internal OpenLayers feature id, it returns the server's id for the feature. And feature.get('id') does not return the GeoJSON id, it returns the value of the feature's id attribute (just like feature.get('sovereignt') returns the value of the feature's sovereignt attribute).
Dec
16
answered Compare getValue with map.layers[i].name
Dec
16
comment Retrieve attributes from a GeoJSON feature in openlayers 3
Can you share a snippet of your GeoJSON file? Looks like the id is not provided in the correct way. Otherwise what you were trying should have worked. On a side note, there is no ol.events.condition.mouseclicked.
Dec
12
comment OL3 - Y Axis inverted
Are your Y values increasing from bottom to top or from top to bottom?
Dec
12
answered Openlayers 3: Drag -draw bbox with form
Dec
11
answered OpenLayers3: How to reload a layer from GeoServer when underlying data change?
Dec
9
revised openlayers 3 ol3 - how to redraw a single feature
Make clear that `ol.Map#skipFeature()` is an internal method.
Dec
9
comment openlayers 3 ol3 - how to redraw a single feature
erilem, I'll refine my answer. I am not so sure that ol.Map#skipFeature should be part of the API. I just thought it was.
Dec
7
answered Geoserver WMS getfeatureinfo OL3 IIS
Dec
7
answered openlayers 3 ol3 - how to redraw a single feature
Dec
3
answered OpenLayers 3 - submit SLD text in wms call
Nov
15
revised Combining two TileWMS with different axisOrientation using OpenLayers3?
The mailing list is now reserved for development discussions, so here is the place to ask user questions.
Nov
15
suggested approved edit on Combining two TileWMS with different axisOrientation using OpenLayers3?
Nov
13
answered Using WMS external SLD with OpenLayers application
Sep
16
awarded  Revival
Jul
19
awarded  Yearling