This guide will help set up your django project to use ReactJS
- django-webpack-loader==0.4.1 ( Connects Django project with Webpack)
| // Since overlays are VectorGrid layers with canvas rendering, | |
| // they don't support clicking through them (the topmost canvas | |
| // swallows the event, lower layers will not see it). | |
| // We workaround this by this hack (inspired by | |
| // http://www.vinylfox.com/forwarding-mouse-events-through-layers/): | |
| // | |
| // All overlays are in their own Leaflet pane. When a click hits a | |
| // layer in the pane, we first handle the event like normal, and then | |
| // hit the event handler below this comment. | |
| // |