[Qgis-user] Popup content aligned to the right
Yossi Rokni
yossi.rokni at gmail.com
Tue Aug 7 07:15:21 PDT 2018
Thanks Phil,
This solves the problem when I use Leaflet (it didn't work for me when I
used OpenLayers).
Actually I used this:
.leaflet-popup-content {
width:margin-right !important;
padding-right:5px;
text-align: Right;
}
But this solution causes 2 problems.
· Every time I will export again the map, it will create a new CSS
file, without this manual update.
Is there a way to make this update permanent (like using a template)?
· When I worked with OpenLeayers (and not with Leaflet), I had the
authors' name displayed on the map using the following in the template
(thanks to your help):
</div>
<div style="position: fixed; bottom:0;left:0;
background-color: white; opacity:0.6; padding:0px;z-index:2;">
<h1>authors' name</h1>
</div>
But now that I work with Leaflet, the authors' name is not seen on the map.
It seems like it appears for a fraction of a second and then it disappears
under the map.
I tried playing with the z-index values: 1, 2, 3, with no success.
Do you know what needs to be done in Leaflet in order to show it on the map?
It worked fine in OpenLayers.
Yossi
בתאריך יום ב׳, 6 באוג׳ 2018 ב-10:12 מאת Philip Barlow <
philipb at pembrokeshirecoast.org.uk>:
> Hi Yossi,
>
>
>
> There isn’t an option to do this in the plugin but its easily done in the
> style sheet. Open up qgis2web.css in the css folder of the plugin output.
>
>
>
> Add “text-align:” to leaflet pop-up content.
>
>
>
> e.g.
>
>
>
> .leaflet-popup-content {
>
> width:200px;
>
> padding-right:10px;
>
> *text-align: Right; *
>
> }
>
>
>
> Phil
>
>
>
> *From:* Qgis-user [mailto:qgis-user-bounces at lists.osgeo.org] *On Behalf
> Of *Yossi Rokni
> *Sent:* 05 August 2018 14:18
> *To:* qgis-user at lists.osgeo.org
> *Subject:* [Qgis-user] Popup content aligned to the right
>
>
>
> Hi,
>
> I created a web map with a point layer.
>
> The content of the layers' attributes is in Hebrew.
>
> The content is displayed in the popup.
>
> It is aligned to left.
>
>
>
> Is there an option to display the popup content aligned to the right? How?
>
>
>
> I use QGIS version 2.18.20
>
> I created the web map using qgis2web plugin with OpenLayers
>
>
>
> 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 <http://twitter.com/PembsCoast>
> Join us on Facebook
> <http://www.facebook.com/group.php?gid=26330984774&ref=ts>
> Watch us on Youtube
> <http://www.youtube.com/user/pcnpa2008#p/u/0/Tw8Udou0p5k>
> Look at us on Flickr <http://www.flickr.com/photos/pembrokeshirecoast/>
>
>
> 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 <http://www.pembrokeshirecoast.wales/default.asp?PID=413> 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
> <http://www.pembrokeshirecoast.wales/default.asp?pid=413&LangID=2> 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/20180807/292c690e/attachment.html>
More information about the Qgis-user
mailing list