TZM / tzm-blade

ZMGC Application empowers members with on-line tools, by providing a free infrastructure to easily exchange, analyse and disseminate information in a scalable, non-blocking manner using only Open Source software build by the community for the community. It is about building lasting and deep solidarity versus cheap and fast Facebook or Twitter campaigns
www.zmgc.net
GNU General Public License v3.0
4 stars 8 forks source link

move map to server side #42

Open nkhine opened 10 years ago

nkhine commented 10 years ago

http://www.zmgc.net/map runs on the client move this to the server as D3 can run on the server as well.

see https://github.com/TZM/tzm-blade/blob/master/assets/js/map.js

the only difficulty would be to integrate d3 widgets into the server-side views.

ensure this is responsive http://eyeseast.github.io/visible-data/2013/08/26/responsive-d3/ and use engine.io to get user's screen dimensions and update this value on change. then re-render the map on screen size change.

it would mean that the map is generated every time the screen changes and will put load on the server.

ref: http://cesiumjs.org/ http://earth.nullschool.net/ https://github.com/NelsonMinar/vector-river-map