User Tools

Site Tools


census:qgis_install

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
census:qgis_install [2025/12/19 18:21] mlivolsicensus:qgis_install [2025/12/19 20:17] (current) – [Users] mlivolsi
Line 27: Line 27:
   - Click "Install Plugin"   - 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.1766168484.txt.gz · Last modified: by mlivolsi