User Tools

Site Tools


census:qgis_install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
census:qgis_install [2025/12/19 16:42] – created mlivolsicensus:qgis_install [2025/12/19 20:17] (current) – [Users] mlivolsi
Line 17: Line 17:
 </code> </code>
  
 +===== Plugins =====
  
 +=== qgis2web and QuickMap Service ===
 +
 +  - Menu --> Plugins --> Manage and Install Plugins
 +  - Search for qgis2web
 +  - Click "Install Plugin"
 +  - Search quickmap and choose quickmapservices
 +  - Click "Install Plugin"
 +
 +===== Configuring QGIS to accept URL Arguments =====
 +
 +Change the following at the top of qgis2web.js
 +
 +
 +<code>
 +function getParam(name) {
 +    const urlParams = new URLSearchParams(window.location.search);
 +    return urlParams.get(name);
 +}
 +
 +let lat = parseFloat(getParam("lat")) || 44.8;
 +let lon = parseFloat(getParam("lon")) || -103.4;
 +let zoom = parseInt(getParam("zoom")) || 4;
 +</code>
 +
 +===== Users =====
 +I'm going to use a user called "qgis" to own all files.
 +
 +<code>
 +useradd -g developer -s /bin/bash -c 'Qgis Account' qgis 
 +mkdir -p /opt/qgis
 +chown -R qgis:developer /opt/qgis
 +</code>
census/qgis_install.1766162525.txt.gz · Last modified: by mlivolsi