chronoscio / frontend

Frontend repository for the ChronoScio project
https://chronoscio.now.sh
GNU General Public License v3.0
3 stars 0 forks source link

Upload shapefile on the frontend #12

Closed amaury1093 closed 5 years ago

amaury1093 commented 6 years ago

Small PR that:

Note:

vercel[bot] commented 6 years ago

This pull request is automatically deployed with Now.

To access deployments, click Details below or on the icon next to each push.

quorth0n commented 6 years ago

I noticed that after adding a territory with the upload shapefile button, adding another shapefile isn't possible. In other words it can only be done once per "edit view". Is this the intended behavior?

quorth0n commented 6 years ago

My guess is that the "editable" part is kind of hard on RAM. Maybe we could disable the editing if the uploaded shapefile is > xMB?

Agree on this, maybe go with 10 mb for this limit?

amaury1093 commented 5 years ago

So after some tests, even adding the Japan territory without editing it is kind of slow, but still doable (~5s on my machine).

vercel[bot] commented 5 years ago

Now cannot deploy because all the allocated instances are in use. You can either upgrade your plan or down scale existing deployments.

amaury1093 commented 5 years ago

Re that last message, I manually deployed here: https://chronoscio-frontend-iivhzlcbpc.now.sh