World-Cleanup-Day icon indicating copy to clipboard operation
World-Cleanup-Day copied to clipboard

How could we get map with trashpoints to country's website?

Open kadry55 opened this issue 6 years ago • 8 comments

Request from Argentina: interactive trashpoints which are shown on app.worldcleanupday.com to the local website. They have the a designer for that. What would be options?

kadry55 avatar Dec 26 '17 12:12 kadry55

@iiasunshine @lynxlynxlynx Would you be able to help with this issue?

kadry55 avatar Dec 27 '17 10:12 kadry55

Well what exactly do they want? A fullblown map they can scroll and edit? Just an interactive display of the points? Would a non-interactive image do?

lynxlynxlynx avatar Dec 27 '17 13:12 lynxlynxlynx

Interactive was their wish, something similar that you can see on: app.worldcleanupday.com

kadry55 avatar Dec 27 '17 16:12 kadry55

They can use an iframe to embed it into their page (trivial task). The challenge is to make their version point to Argentina by default — I don't know if any parameters can be passed via the url.

lynxlynxlynx avatar Dec 27 '17 16:12 lynxlynxlynx

We would like to be able to show on our website www.vamosahacerlo.com.ar the points of the waste map (mapped by WCD app) so that the information that is uploaded to the map is always visible and up-to-date, as well as being available to all and thus show possible cleaning points to community. @krishaamer what kind of support can we offer here?

kadry55 avatar Mar 12 '18 12:03 kadry55

Also Brazil just asked for the same.

lynxlynxlynx avatar Mar 12 '18 23:03 lynxlynxlynx

I tried adding another react route (/location/:lat/:lo), but am not familiar enough with react, so didn't manage to get the parameters passed to the right component. Iframe requires some css tricks to hide the header, but otherwise works as expected: https://lynxlynx.info/test.html

lynxlynxlynx avatar Mar 16 '18 10:03 lynxlynxlynx

Columbia is also interested in easier ways than coding it from scratch.

DB scaling / errors need to be fixed first though or the situation will just get worse for everyone.

lynxlynxlynx avatar May 03 '18 16:05 lynxlynxlynx