Skip to main content
14 events
when toggle format what by license comment
Jan 13, 2016 at 11:07 comment added Jonatas Walker Hey @Abayob, there you are (openlayers.org/en/master/apidoc/ol.style.html#.StyleFunction)
Jan 13, 2016 at 9:04 comment added PIDZB Hey Jonatas, I am currently using this answer to increase my boundaries of knowledge and I was wondering how'd you know you can use this callback function? I cannot find documentation for this function in the Openlayers API?
Oct 14, 2015 at 9:06 comment added Jonatas Walker What a good news this morning. No debt, you're welcome.
Oct 14, 2015 at 7:38 comment added PIDZB Jonatas, I am so much in your debt! I've read through all your answers yesterday-evening and came up with an idea. Here is the result:jsfiddle.net/8hgxyayp/9 This is what I wanted to achieve. Thank you so much for all your help!!!
Oct 13, 2015 at 17:05 comment added Jonatas Walker Give up is not an option, right? See if helps jsfiddle.net/jonataswalker/8hgxyayp/8
Oct 13, 2015 at 13:48 comment added PIDZB jsfiddle.net/8hgxyayp/7 I give up... I still am not able to understand how to set a unique value to e.g. feature.set('id'). When I create a new layer, or zoom in, the points merge together. It only works as long as you click every button separately and don't zoom.
Oct 13, 2015 at 11:56 vote accept PIDZB
Oct 13, 2015 at 11:56 comment added PIDZB Aaaah now I understand :D
Oct 13, 2015 at 11:54 comment added Jonatas Walker Oh, I didn't say unlogical, it is just I don't understand it. Now look, all you have to do is set a unique parameter to the layer and store it into the feature
Oct 13, 2015 at 11:01 comment added Jonatas Walker Like var category = feature.get('desc'); in your fiddle.
Oct 13, 2015 at 10:59 comment added Jonatas Walker I don't understand your logic. The layer name is supposed to be like an ID but you are using the key of the property, instead of value. In my first example was the value of category property.
Oct 13, 2015 at 10:43 comment added PIDZB Here we go: jsfiddle.net/8hgxyayp/6 As you can see in the GeoJSON, each feature has the same properties with different values. These values represent the radius of hte circle. But I can't get to those values, because when the styleFunction runs, there is only 1 layername available...
Oct 13, 2015 at 10:24 comment added PIDZB This is not working, because I only have 1 feature :( I will try to create a JSfiddle for it.
Oct 13, 2015 at 10:03 history answered Jonatas Walker CC BY-SA 3.0