As of May 31, 2023, we have updated our Code of Conduct.
12 votes
Accepted

Is there an alternative to qgis2web?

There are many alternatives to qgis2web, including QGIS Cloud, Lizmap, ArcGIS online, Mapbox, CARTO, Google Maps, MapTiler, deegree, MapBender, and others (Github certainly used to present uploaded ...
Tom Chadwin's user avatar
  • 5,752
9 votes

Install qgis2web plugin

You should install it via Plugins --> Manage and Install Plugins and then search for qgis2web (see below). (Further details about installing external QGIS plugins can be found in the offical docs.) ...
dmci's user avatar
  • 4,862
8 votes

Exporting a web map with Google Maps Satellite using Qgis2Web?

I'm afraid this isn't possible. Since Google data has licensing implications, I can't run the risk of including them in qgis2web. Very sorry. I would suggest that you find another source of satellite ...
Tom Chadwin's user avatar
  • 5,752
7 votes
Accepted

Preserving style when producing web maps with the QGIS qgis2web plugin

I think that graduated sizes are quite a recent QGIS feature (?2.10). I've therefore not implemented them yet in qgis2web. I can have a look at it, though. In answer to your other question, no, I'm ...
Tom Chadwin's user avatar
  • 5,752
6 votes
Accepted

Installing qgis2web in qgis3 (2.99) on ubuntu 16.04

The missing module is 'PyQt5.QtWebKitWidgets' which can be installed on ubuntu as part of the 'python3-pyqt5.qtwebkit' deb package. To check if it is already installed, and ensure it is available, ...
RoperMaps's user avatar
  • 2,126
6 votes
Accepted

How was this map made by qgis2web

This is because the example you link to has separate layers, whereas yours is one layer, rendered with multiple styles (eg categorized, graduated, or rule-based). I'm afraid qgis2web only creates ...
Tom Chadwin's user avatar
  • 5,752
6 votes

Coordinate system to be used with qgis2web (QGIS to Leaflet)

qgis2web leverages proj4leaflet under the hood, so you should be able to use any CRS supported by proj4js.
IvanSanchez's user avatar
  • 9,915
5 votes
Accepted

Configuring URL link for popup window directly in qgis2web plugin?

Change your layer's table structure and add fields to hold any further information you need. Then add this new information for each of your points. If any attribute contains any URLs, qgis2web ...
Tom Chadwin's user avatar
  • 5,752
5 votes
Accepted

Is there a way to embed a Leaflet map into a Wordpress theme website?

I believe there might be one or more iframe plugins for WordPress. If so, an iframe is the simplest way to embed a map.
Tom Chadwin's user avatar
  • 5,752
5 votes

PopUp with Images with QGIS2web

Please download the current master branch of qgis2web from Github: https://github.com/tomchadwin/qgis2web In Layer > Properties > Fields (I think), select an Image edit widget for a field. ...
Tom Chadwin's user avatar
  • 5,752
5 votes
Accepted

Embedding qgis2web exports into WordPress?

If you're using Wordpress with your own hosting, you simply put the folder created by QGIS2Web on your web server, then as suggested, you can embed an iFrame on your wordpress post that embeds the ....
DPSSpatial_BoycottingGISSE's user avatar
5 votes
Accepted

Generate own XYZ Tile (MBTiles) - which URL?

Building on @IvanSanchez's comment, to get this to work in qgis2web, you'll have to get the contents out of the MBTiles file. Unzip the MBTiles into a directory on your website, retaining the XYZ ...
Tom Chadwin's user avatar
  • 5,752
5 votes

Сhanging pop-up font size in qgis2web

I tried this and it worked: <div id="map"> <div id="popup" class="ol-popup"> <a href="#" id="popup-closer" ...
OnceUponATime's user avatar
4 votes

QGIS2web page does not display curved labels

I'm afraid I don't think this is possible either with OL3's labels or with the Leaflet label plugin. I therefore don't think curved labels can be easily developed in qgis2web. They're certainly not ...
Tom Chadwin's user avatar
  • 5,752
4 votes

PopUp with Images with QGIS2web

yes it is possible, like what @TomChadwin said with <img src="path/to/image.jpg" /> with a huge help from excel (using CSV file), i will explain in step: 1.Load your data with the image ...
Maruli Uje Indo's user avatar
4 votes

qgis2web python error message

Ah, this looks like an encoding error. I need to patch the plugin to replace str() with unicode(). I'm away for two weeks, so for the moment, change leafletWriter.py line 203 from: if str(field) == "...
Tom Chadwin's user avatar
4 votes
Accepted

qgis2web python error message

Do the same in the console, but add qgis2web/ before each param name, eg: QSettings().remove("qgis2web/Extent") QSettings().remove("qgis2web/Base layer") QSettings().remove("qgis2web/Template") ...
Tom Chadwin's user avatar
  • 5,752
4 votes

Embedding qgis2web exports into WordPress?

Instead of embedding the folder into your wordpress structure you should try to copy the relevant code snippets from the .html and .js files to an empty wordpress page. The javascript code should ...
TobsenB's user avatar
  • 902
4 votes

Embedding qgis2web exports into WordPress?

Use a Wordpress iframe plugin and embed the map using an iframe. That's the easiest way. @TobsenB's approach will produce perhaps better code, but is more difficult to achieve, and can more easily ...
Tom Chadwin's user avatar
  • 5,752
4 votes
Accepted

How do I set the width and height of a popup using QGIS2Web and Leaflet

Add the following CSS somewhere (either between <style> tags in your main map HTML file within the <head>, or better in a CSS file): .leaflet-popup-content { max-width: 200px; ...
Tom Chadwin's user avatar
  • 5,752
4 votes
Accepted

How to add a legend to rasterlayer in Qgis2Web plugin while exporting maps?

Yes, you are right - the layers list currently only shows the name of raster layers. Symbology and values could be added in the future, but they're not there now. To achieve what you want manually, ...
Tom Chadwin's user avatar
  • 5,752
4 votes

qgis2web Plugin Broken?

The behavior of qgis2web has changed. If you don't want a field to appear in the popup, set its edit widget to Hidden. The popup field options in qgis2web now control the layout of the fields in the ...
Tom Chadwin's user avatar
  • 5,752
4 votes
Accepted

qgis2web, popups with information are displaying for the bottom layer (not the top layer)

After debugging for a number of hours (being out of practice and all), I found a simple solution: The issue is that map.forEachFeatureAtPixel loop reads features in the following order: top-most to ...
Olak's user avatar
  • 135
4 votes
Accepted

Localise qgis2web Leaflet output Measure tool

Open the exported file index.html in a text editor. and find the following code: var measureControl = new L.Control.Measure({ primaryLengthUnit: 'meters', secondaryLengthUnit: 'kilometers', ...
Tom Chadwin's user avatar
  • 5,752
4 votes

qgis2web popup editing

In the CSS-Class .ol-popup there are two properties that you want to take a closer look at: min-width - controls the minimum width of your popup. Try to set it to a higher value (like 200px or 400px) ...
bennos's user avatar
  • 2,049
4 votes

Markers Flickering on OpenLayers export from qgis2web

There is no fix yet, but the suggested workaround for now is to disable the declutter function by editing the output file layers/layers.js, and removing all occurences of the following line: ...
Darren Noble's user avatar
4 votes
Accepted

Avoid multiple labels for the same layer in QGIS2WEB export

This is probably because your layers use multipart geometry. I'm afraid it's a limitation of the labelling techniques available in the webmapping libraries to which qgis2web exports that mean there is ...
Tom Chadwin's user avatar
  • 5,752
4 votes
Accepted

qgis2web Leaflet zoom level on geolocation

Geolocation is done by Leaflet.Locate (https://github.com/domoritz/leaflet-locatecontrol). Its readme gives options to change its behaviour. Open index.html in a text editor, and change the code ...
Tom Chadwin's user avatar
  • 5,752
4 votes
Accepted

qgis2web leaflet: change position of layers control box

Your question has already been asked here before. Nevertheless: There is a 'position' option in several elements in Leaflet like L.control to specify where in the map the element should appear. ...
pascatl's user avatar
  • 899
4 votes
Accepted

Replicating Conditional popup of ArcGIS Online in QGIS2WEB?

If qgis2web has inline labels or header labels specified for popup fields then the resulting web map will display a the field label and a blank space for the null value. To fix this you will have to ...
GreyHippo's user avatar
  • 2,170

Only top scored, non community-wiki answers of a minimum length are eligible