Skip to main content
12 events
when toggle format what by license comment
May 7, 2015 at 7:46 vote accept antonLundkvist
Dec 17, 2014 at 14:03 comment added ahocevar 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 16, 2014 at 16:44 answer added antonLundkvist timeline score: 0
Dec 16, 2014 at 15:50 answer added b-eyes timeline score: 5
Dec 16, 2014 at 15:49 answer added Anders Finn Jørgensen timeline score: 5
Dec 16, 2014 at 12:49 comment added antonLundkvist Thanks for comment: about the mouseclicked, thanks for the note, it should be singleClick. I've updated the question with a snippet of my geoJSON file.
Dec 16, 2014 at 12:44 history edited antonLundkvist CC BY-SA 3.0
added 485 characters in body
Dec 16, 2014 at 10:05 comment added ahocevar 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.
S Dec 15, 2014 at 22:29 history suggested tinlyx CC BY-SA 3.0
formatting
Dec 15, 2014 at 22:20 review Suggested edits
S Dec 15, 2014 at 22:29
Dec 15, 2014 at 22:00 review First posts
Dec 15, 2014 at 22:20
Dec 15, 2014 at 21:57 history asked antonLundkvist CC BY-SA 3.0