Skip to content
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

copyWith(options) method for Feature class. #6

Open
armantorkzaban opened this issue Dec 5, 2022 · 1 comment
Open

copyWith(options) method for Feature class. #6

armantorkzaban opened this issue Dec 5, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@armantorkzaban
Copy link

Next to .clone() we could benefit from this:

var f1 = Feature(id: ''sth, properties: {'sth':'sth'},geometry: 
Point(coordination: Position.of([1,1])));
var f2 = f1.copyWith({'position':Position.of([2,2])});
assert(f2.properties ==f1.properties);

@lukas-h

@armantorkzaban armantorkzaban added the enhancement New feature or request label Dec 5, 2022
@armantorkzaban armantorkzaban self-assigned this Dec 5, 2022
@lukas-h
Copy link
Member

lukas-h commented Dec 6, 2022

It would make sense for Features.

Go ahead with this!

@jsiedentop jsiedentop transferred this issue from dartclub/turf_dart Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants