<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:1;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-mailStijl18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=NL link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Hi Yossi,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>I have two solutions for this, both are about editing the index.html file, in a webmap based on Leaflet (I do not know if OpenLayer produces a different index.html)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>You could add your name at the bottom-right copyright/source line by adding text to the following line:<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>var hash = new L.Hash(map);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        map.attributionControl.addAttribution('<a href="https://github.com/tomchadwin/qgis2web" target="_blank">qgis2web</a> <span style='background:yellow;mso-highlight:yellow'>Map created by</span> <span style='background:yellow;mso-highlight:yellow'>YourName</span>');<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>Or you could add a textbox by adding the following section to the end of the index.html, but before the line setBounds();<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>var author = new L.Control({position:'bottomright'});<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>                              author.onAdd = function (map) {<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>            this._div = L.DomUtil.create('div', 'info');<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>            this.update();<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>            return this._div;<o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>        </span>};<o:p></o:p></p><p class=MsoNoSpacing>        author.update = function () {<o:p></o:p></p><p class=MsoNoSpacing>                                                               <span lang=EN-US>this._div.innerHTML = 'Map created by Yourname’;                        <o:p></o:p></span></p><p class=MsoNoSpacing><span lang=EN-US>                               </span>};<o:p></o:p></p><p class=MsoNormal>                               author.addTo(map);<o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>Greetings,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>Jeroen<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b>Van:</b> Qgis-user <qgis-user-bounces@lists.osgeo.org> <b>Namens </b>Yossi Rokni<br><b>Verzonden:</b> donderdag 31 mei 2018 08:16<br><b>Aan:</b> qgis-user@lists.osgeo.org<br><b>Onderwerp:</b> [Qgis-user] QGIS web map - add author name<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div><div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'>​<o:p></o:p></span></p></div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'>Hi,<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'>I created my first web map in QGIS, using the good instructions in this web page:<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'><a href="https://www.qgistutorials.com/en/docs/web_mapping_with_qgis2web.html" target="_blank"><span style='color:#1155CC'>https://www.qgistutorials.com/en/docs/web_mapping_with_qgis2web.html</span></a></span><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#222222'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#222222'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'>I want to add my name as a fixed text at the bottom of the map.<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'>Is it possible to do it by updating the file qgis2web.js or any other way?<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'><o:p> </o:p></span></p></div><div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'>I am not familiar with java script - it would be great if you could provide me the relevant <span style='background:white'>java script</span> command that I need to add into <span style='background:white'>qgis2web.js.</span><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'><o:p> </o:p></span></p></div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'>Some more details:<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'>I use QGIS version 2.18 (I tried using QGIS 3.0, but I couldn't create a web map in this version).<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222;background:white'>I created the web map using qgis2web plugin.</span><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'><o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'>Thanks<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#222222'>Yossi<o:p></o:p></span></p></div></div><p class=MsoNormal dir=RTL style='text-align:right;direction:rtl;unicode-bidi:embed'><span dir=LTR><o:p> </o:p></span></p></div></div></body></html>