osm-in / flood-map

A simple web map to visualize flood information on maps
http://osm-in.github.io/flood-map/
MIT License
94 stars 73 forks source link

Information Required #22

Closed rohit1290 closed 8 years ago

rohit1290 commented 8 years ago

Is there a centralized database for the map?

If someone host flood map on his/her website. Any update on that instance will be reflected on the master database i.e the database of http://osm-in.github.io/flood-map.?

or vice versa

If someone update on that master database i.e the database of http://osm-in.github.io/flood-map. Will that be reflected on the website hosted by someone else?

planemad commented 8 years ago

@rohit1290 if you embed it within an iframe this should work. This has been done by The Hindu

rohit1290 commented 8 years ago

@planemad Yes I know that, Just wanted to know for my knowledge. I am not planning to host it but I was curious to know the working process.

planemad commented 8 years ago

We are using the Mapbox data API for the backend as it was scalable and allowed handling the huge load of 1000+ page views a minute we were getting. So yes, the database lives there.

We have cross origin restrictions to avoid exploiting the API so it only works from the homepage at the moment. Iframe embeds will work, but any forks will not.

rohit1290 commented 8 years ago

Thanks, that's exactly what I wanted to know.