[Qgis-user] Fwd: QGIS web map - add author name
Philip Barlow
philipb at pembrokeshirecoast.org.uk
Thu Aug 2 01:03:45 PDT 2018
Hi Yossi,
You could just add something like this to the index.html output at the bottom between </script> and the </body>?
</div>
<div style="position: fixed; left: 100px; top: 20px; background-color: white; opacity:0.6; padding:0px;z-index:2;">
<h1>Your title</h1>
</div>
The z-index is important, make sure you add it to the div id for the map or else your title will be underneath your map and you won’t see it.
Like this:
<div id="map" style="z-index:1;">
You’ll find some more info here:
https://github.com/tomchadwin/qgis2web/issues/415
You could put in an enhancement request on github?
Hope this helps.
Phil
From: Qgis-user [mailto:qgis-user-bounces at lists.osgeo.org] On Behalf Of Yossi Rokni
Sent: 02 August 2018 06:57
To: qgis-user at lists.osgeo.org
Subject: [Qgis-user] Fwd: QGIS web map - add author name
I created my first web map in QGIS, using the good instructions in this web page:
https://www.qgistutorials.com/en/docs/web_mapping_with_qgis2web.html
I want to add a fixed text
(such as author's name)
at the bottom of the map.
Is it possible to do it by updating the file qgis2web.js or any other way?
I am not familiar with java script - it would be great if you could provide me
an example of
the relevant java script command that I need to add into qgis2web.js.
Some more details:
I use QGIS version 2.18 (I tried using QGIS 3.0, but I couldn't create a web map in this version).
I created the web map using qgis2web plugin.
Thanks
Yossi
Mae'r Awdurdod yn hapus i gyfathrebu yn Gymraeg neu yn Saesneg
The Authority is happy to communicate in Welsh or English
***********************************************************************
Website www.pembrokeshirecoast.org.uk
Follow us on Twitter
Join us on Facebook
Watch us on Youtube
Look at us on Flickr
This email and any attached files should only be read by those persons to whom
they are addressed and be used by them only for their intended purpose.
If you are not the intended recipient please destroy all copies and inform the
sender by return email.
Please note that the contents of this email may be subject to public disclosure
under the Freedom of Information Act 2000 and therefore the confidentiality of
this message and any reply cannot be guaranteed.
Click here to view PCNPA Privacy Notice Keeping your Information Safe
For further information on the PCNPA please visit our website at www.pembrokeshirecoast.org.uk
Please consider the environment before printing this email.
Dim ond y personau hynny yr anfonwyd yr e-bost hwn atynt ac unrhyw ffeiliau sydd
ynghlwm ddylid eu darllen, a dim ond hwy ddylid eu defnyddio at y diben y bwriadwyd hwy.
Os nad y chi yw'r person y bwriadwyd eu derbyn a fyddech gystal â dinistrio pob copi a rhoi
gwybod i'r anfonwr gyda throad yr e-bost.
Noder os gwelwch yn dda y gall cynnwys yr e-bost hwn orfod cael ei ddatgelu i'r cyhoedd o
dan Deddf Rhyddid Gwybodaeth 2000 ac felly ni ellir gwarantu cyfrinachedd y neges hon
nac unrhyw ateb.
Cliciwch yma i weld Hysbysiad Preifatrwydd APCAP - Cadw eich Gwybodaeth yn Ddiogel
Am ragor o wybodaeth am APCAP ymwelwch â'n gwefan ar www.arfordirpenfro.org.uk
Ystyrier yr amgylchedd cyn argraffu'r e-bost hwn os gwelwch yn dda.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180802/4c2e6e54/attachment.html>
More information about the Qgis-user
mailing list