[Lizmap] HTML in media folder (Lizmap)

DAUCE Antoine a.dauce at audelor.com
Thu Aug 11 08:53:42 PDT 2022


There might be another way to do so. I'm oftenly using the "Background selector<https://github.com/3liz/lizmap-javascript-scripts/blob/master/library/ui/background_selector>" script in this github repo https://github.com/3liz/lizmap-javascript-scripts, and it seems doing this.

In the JS file :

  *   On a click event you create a div and add it to html

In the css file :

  *   You define style of your created div.



De : Lizmap <lizmap-bounces at lists.osgeo.org> de la part de Etienne Trimaille <etrimaille at 3liz.com>
Envoyé : jeudi 11 août 2022 12:12
À : Marin M; Peter Berger; lizmap at lists.osgeo.org
Objet : Re: [Lizmap] HTML in media folder (Lizmap)


I haven't tried, but an HTML media file should be loaded in the popup. Not included as an iframe. Maybe it's not exactly what you wanted. Just for your information


> For a given feature, using a path in your field starting by media/, Lizmap will display:

  *   the content for txt or HTML files

On 11/08/2022 09:36, Marin M wrote:
I thought If there is possibility to input JS then it would be logic to couple-in HTML

Maybe wishful thinking. But could be cool

B regards,

Marin Mirosevic

Dana ponedjeljak, 18. srpnja 2022. Peter Berger <peter.berger at bluewin.ch<mailto:peter.berger at bluewin.ch>> piše:

Interesting question. Hope somebody can help.


Von meinem iPhone gesendet

> Am 18.07.2022 um 17:20 schrieb Marin M <marin.mirosevic at gmail.com<mailto:marin.mirosevic at gmail.com>>:
> hi,
> is it possible ,in addition to the Javascript file, to have an HTML file connected to it , in the media folder .
> My intention would be, when a feature  is selected/clicked on a lizmap web client, that Javascript calls a div  ID which has an iframe defined on it.
> Is it possible at all to do coupled HTML/Javascript in the Media folder Lizmap`?
> If so, how ?I tried and it seems it is not working. Or am I doing something wrong ?
> best regards
> _______________________________________________
> Lizmap mailing list
> Lizmap at lists.osgeo.org<mailto:Lizmap at lists.osgeo.org>
> https://lists.osgeo.org/mailman/listinfo/lizmap

Lizmap mailing list
Lizmap at lists.osgeo.org<mailto:Lizmap at lists.osgeo.org>


Etienne Trimaille

Tel. 06 12 93 11 39
31, rue de l'Argenterie
34000 Montpellier
Siège social
73, allée Kleber
Boulevard de Strasbourg
34000 Montpellier

Cliquez ici<https://www.mailcontrol.com/sr/IZP0hfFtpfbGX2PQPOmvUmaGI8Tu3yGrXzpJwO3oUj389YPmav-99AZJo3Z41zkS7cDW6vO5F9cgL4AI7al_HQ==> pour signaler ce message comme étant du spam.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20220811/8ec3542f/attachment-0001.htm>

More information about the Lizmap mailing list