Closed WilliamWalker55 closed 8 years ago
Hmm, I feel that I recognise this bug. First check if the uniqueKey
(here given as "ID" – in capitals) is a correct attribute (it must exist). Also check that all values for given "ID" are unique. If error is still present please upload the geojson/send a link to it and I could have a look.
ID exists in capitals and the vaules are unique. The GeoJSON that I sent had the "ID" value as a float, I have since tried it as an interger and string but the issue is still present
The problem is caused by the feature ID (not the properties ID) is in upper-case. The GeoJSON standard says it should be given as "id": http://geojson.org/geojson-spec.html#feature-objects
However, it does not state explicitly (in words) that it must be lower-case. Since this problem will for sure come back and by then we have forgotten all of this, I will change the code so it allows id to be either lower-case or upper-case. Let me commit first and then update to the latest code to confirm it works for you also, before closing this issue.
Works with both upper and lower case now
The first listed feature in the GeoJSON is highlighted regardless of where the layer is clicked, it remains highlighted when selecting other features in the layer. This happens even when it is the only layer in the config file. Popups appear in the correct place and contain correct information.