-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ol.parser.GeoJSON: identifier is dropped #724
Conversation
LGTM @fredj I need to do the same for other parsers |
Forgot to mention that if the properties already contains an |
This makes me wonder if we should have a fid again like in OL2, which was separate from the attributes. |
We do not need a distinction between internal id and fid, because we use |
hey @ahocevar I was talking about a distinction between an attribute named 'id' and the fid (I am not 100% sure if e.g. GML allows this but I think it does). If I understand @fredj correctly with this approach the fid would override any property named 'id' on the feature already. Or should we map fid to the internal id instead? |
Mapping the feature id to the internal id would at least be awkward, if not Storing the fid (or id, not sure what the better name would be) as a member Either way, we will need the server's feature id if we use a tile based bbox strategy - for keeping track of edits and for fetching and rendering data from non tile aware feature servers, so we can keep track of features that we already have in the client side store. |
Looking into this now. Maybe we can do something similar to what we did with the default geometry. |
I like this approach @ahocevar Sent from my iPhone On May 23, 2013, at 6:17 PM, ahocevar notifications@github.com wrote:
|
agree that #733 is a better approach |
http://geojson.org/geojson-spec.html#feature-objects