Lizmap-web-client: modify the popup "informazioni"

Created on 15 Mar 2018  路  5Comments  路  Source: 3liz/lizmap-web-client

hi, in which file .js is possible modify the title and the text what show
in the popup "informazioni"?
cattura

question

All 5 comments

The title and the text is extracted from the WMS GetCapabilities. You can update the QGIS Project properties to update it.

Yes it is possible by using this code :

$("div#content div#metadata.tab-pane div div dl.dl-vertical dt:contains('Title')").html("New title");
$("div#content div#metadata.tab-pane div div dl.dl-vertical dd:contains('Old value')").html("New value");

We try with:

lizMap.events.on({
    mapcreated: function(e) {
        $("div#content div#metadata.tab-pane div div dl.dl-vertical dt:contains('Organization')").html("New name for organization");
    }
});

It works!!

It is possible to add image as html content?

It is possible to add image as html content?

As you can use the media folder and add the image path with the JS.
Follow https://docs.lizmap.com/next/en/publish/customization/javascript.html#url-of-a-static-file

Issue solved!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FPaulsen picture FPaulsen  路  13Comments

danzig666 picture danzig666  路  10Comments

buoncri picture buoncri  路  13Comments

josemvm picture josemvm  路  3Comments

news24lor picture news24lor  路  7Comments