2

Using the qgis2web plugin: Is it possible to select more than one but not all attributes to be shown as popup? I can select all attributes or only one attribute to be shown. but not for example two attributes. Neither shift-click nor right-click seem to work. Any workaround (beside deleting all not to be shown attributes and then select all)?

1 Answer 1

3

I'm afraid not. It's not supported. It is something I've thought about, but no-one has asked for it until you. I'll look into it, but for now, it's not possible. Apologies.

UPDATE The best way to achieve this at the moment is to create a new QGIS layer from your existing data, but with only the fields you need. Then export the new layer, not the old one.

UPDATE 2 The other way to achieve this is to edit the layer fields in QGIS and hide the ones you don't want in your Leaflet map by setting their edit widgets to Hidden.

4
  • ok , sorry my mistake: I misinterpreted the text from the help-file:Data export Delete unused fields If not all fields are selected in "Info popup content", remove the undisplayed fields from the GeoJSON - helps to reduce file size
    – Kurt
    Commented Feb 5, 2016 at 21:10
  • I'll look at the wording to remove any ambiguity. Sorry for the confusion. Commented Feb 5, 2016 at 22:19
  • 1
    I've added a feature request for this - no timescales yet: github.com/tomchadwin/qgis2web/issues/205 Commented Feb 8, 2016 at 11:12
  • 1
    I've also reworded that sentence in the README/help. I hope that makes things clear. Commented Feb 8, 2016 at 11:14

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.