-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update presets #193
Update presets #193
Conversation
@geohacker in this same PR, can we add more presets on the initial "Select Feature Type" screen? This will help users see that there are multiple types available. Will the parent preset types have a nested accordion/list style functionality, like in id? |
From the limited testing I've been able to do this is working alright so far. There are definitely bugs with the logic for determining a best guess at a preset, but I don't think that's new (and is definitely my fault). For example, there's no way this node in downtown seattle is what observe thinks it is: |
I just pushed a script to fetch and update icons. And fixed a bunch of tests that were failing because of unavailable icons, which are now resolved. This should be ready to merge, but needs another round of testing. @sethvincent @LanesGood @batpad |
The icons are bundled into iOS and Android for performance. This means apart from updating AndroidIt's as easy as creating a symlink:
iOSiOS is tricky because adding them via xcode makes direct copies instead of symlinks, and also adds them a 1x resolution. We want to add them as symlinks and 3x resolution. Looks like we'll have to write a script to do this. I had some luck using https://github.com/angelvasa/AVXCAssets-Generator, but it again creates a copy instead of symlinks and also changes the resolution. This means map icon sizes will become inconsistent between Android and iOS. |
So android is fixed now. For iOS I think we should write a script that generates Image.xcassets for each icon like https://github.com/developmentseed/observe/tree/develop/ios/Observe/Images.xcassets/fas_bacon.imageset. @sethvincent I probably won't get to this today or tomorrow, so if you have time, it'll be great to wrap this up. |
@geohacker I added the script for symlinking to android and ios. Did some testing on both to make sure images are still showing up alright and things are looking good. |
… go away. add link to the update icons script
@sethvincent Thank you! I made some minor changes to the script to remove the asset folders and create it from scratch so we take out dead links. update-icons.sh not only adds but removes obsolete icons. This is ready for merge I think. @LanesGood if you have sometime it'll be great if you test! |
@geohacker @sethvincent both iOS and Android builds failing for me. Main iOS error message:
Main Android error message:
|
I revised the script to use relative paths and ran the script again to update the symlinks. The icons should now work as expected. |
@sethvincent iOS now works for me! Android still errors, though I've applied the scripts in @geohacker's comment above Error:
|
@LanesGood it took me awhile to figure out that the script at some point had a bug where it created a symlink with a filepath of You could try re-running
Also: you only need to run |
@geohacker I think this might be ready to merge. I haven't done any testing of searching for presets and adding features, but that might be best as a follow-up pr. |
This PR adds all presets from iD and updates existing ones along with their schema. This needs thorough testing. cc @developmentseed/observe