1

I was using the qgis2web plugin to create a web map of polygons. I got this far: vehiclethefts.netne.net Then, I had to add another layer containing 50,000 points and realized the plugin couldn't handle it. So, it crashes and you can not navigate on the map due to the large number of points.

So, I was wondering if there is a similar free service that would allow me make such a map of both polygons and points.

1
1

Limit visibility of the layer to when you are more zoomed in, and add a bounding box strategy. See this question: How to add a bounding box filter to this leaflet WFS request?

4
  • Are you suggesting I should I first generate the JS files with qgis2web and then modify the Javascript code? The problem is it's hard to load the index.html on the browser to even see what's going on. – multigoodverse Mar 4 '16 at 16:00
  • Yes, that's what I mean. Do you mean you are having difficulty finding the index.html file after export, to edit it? In the plugin dialog, use the setting Data export > Export folder to get the file to export somewhere you can find it. – Tom Chadwin Mar 4 '16 at 16:23
  • I mean it's hard to test index.html on the browser as it barely loads. The plugin also crashes when generating all the points. – multigoodverse Mar 4 '16 at 22:09
  • OK. Create a dummy dataset of about 100 points, evenly died across the range of your 50,000-point one, and swap that in while you code the functionality I mentioned above. Then swap back in you real dataset. That said, I don't think this is ever going to work with JSON layers. You need it to be from a WFS. The bbox strategy will only work in that situation. – Tom Chadwin Mar 5 '16 at 7:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.