leaflet rewriting 60% done
stop event polling when event layer is hidden, beautification
leaflet rewriting 80% done
fix a bug preventing event polling after a layer is hidden