-
Notifications
You must be signed in to change notification settings - Fork 20
Finish maki icons #127
base: master
Are you sure you want to change the base?
Finish maki icons #127
Conversation
At first glance it looks like you just delay all requests. But I haven't tested it in detail yet. Maybe take a look at underscore.js' implementation |
I'm not sure if it is possible to use this, since the function has different parameters on every call. If you have an idea or want to test it, just do it! ;) |
I modified the code. Worked for me in some first tests on my test machine. So it could work on all machines ;) |
Bummer...maybe we have to increase the timeout. Could you test int with 200 or 250ms in this line? |
I think this is related to the PR/branch. On lower zoom levels (~ <10) there are a lot of icons and layers which have to be rendered. It also loads a lot of icons in the background (which should be async). Don't know what's the best way to fix this. |
Maybe we could use something like that? I'll add some TODOs to the OP. |
MarkerClusters would fix the visual glitchiness, but the load performance still remains as you said. @v1r0x Take a look at Web Workers. If it is possible to move the API calls to a worker this might solve the performance issue. |
I added marker clustering and adjusted the zoom levels (from 9-16 to 12-16) and the performance is better. Not good, but better. |
Maybe we could cache the POIs in the database and check on startup (or somethink like once a week) for updates. Thus the load performance would be a lot better. |
What do you think? @jancborchardt @Henni |
@v1r0x maybe let’s merge this and fix the other stuff going forward? |
If you are happy with the current state ;) |
If there are several icons in the same area the get clustered so the app doesn't display thousands of icons and the UI starts to lag. If you zoom in they get separated (and clustered if you zoom out). Added this to fix #129. I thought I added the POI circle background, but seems I forgot that, maybe this way it doesn't look like a placeholder and can be associated with POIs? |
Yup, the circle should be around it. Also, do all POIs get clustered? I would say it only makes sense to group POIs which have the same type (like supermarket). |
Yes, all together. Don't know if it is better if we only cluster POIs of the same type. Thus we would have a couple of cluster markers in one area and the user don't know which cluster is which POI type. Maybe I we'd add unique colors for every type and set this color for the specific cluster as well? |
Maybe just use the normal type icon with an overlaid number on top? Or in a circle in a corner. |
I hope I have some time this week to fix this. Would be good if we could finish the 0.1 release...finally ;) |
This PR fixes #120