0

In a project, I have a layer containing 7000 features, 7 meg big which are polygons, lakes. 500 features have names. I am only trying to create a map with this one layer. If I create a web map in QGIS2WEB, with labels turned off, the Update Preview takes 4 seconds to display the layer and on EXPORT, it takes 5 seconds to display the map in Firefox.

If I turn on single labels, with value of NAME, with no other settings changed, the Update Preview takes 1.5 minutes to display. If I EXPORT the map it takes 5 seconds for the Progress dialog box to complete showing the export and writing of the layer to JSON, writing HTML etc. It then takes 1.5 minutes for the map to be rendered in the Firefox browser and when imported into Wordpress, takes the same time to be rendered.

I have not made any other changes to the layer such as symbology, etc.

The resulting map with labels on is 16 meg.

I have exported the layer in QGIS to a copy and have the same problem. I have displayed the map in Chrome and MS Edge and it takes the same 1.5 minutes to be rendered. I have deleted all but two columns from the attribute table for the layer with no change.

Do you have any suggestions to solve this problem?

5
  • can you provide .qgz project and files without sensitive data? Commented Oct 23, 2023 at 14:46
  • Do you want just the layer in question or do you want all layers in the project? Commented Oct 24, 2023 at 15:55
  • How do I provide the requested files? Commented Oct 24, 2023 at 16:29
  • upload a zip to any web location or use dropbox, google drive etc.. Commented Oct 24, 2023 at 19:26
  • Thank you for the reply. Here is link to the zip: 1drv.ms/u/s!Au6VtnAlBV26kghl3jYQOjLN4mCV?e=fTad4M Commented Oct 24, 2023 at 21:06

1 Answer 1

1

Based on the data provided, I understand that you are using a Leaflet export, which does not manage label declutter or minzoom and maxzoom. Perform an Openlayers export, you will find the choice below in the qgis2web plugin. You will see that the map will be fast because the labels will only appear at a certain zoom.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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