[GeoNode-users] Change Header and Footer (Matheus Ximenes)

Toni Schönbuchner toni.schoenbuchner at csgis.de
Tue Jan 7 23:09:00 PST 2020


Hi Matheus,

first of all, you can switch viewers by changing the hookset variable in your settings.py
https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L1338 <https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L1338>

The current Viewer of GeoNode is MapStore2. It is  React based and uses by default OpenLayer.
In case you need changes you will need to dive into its architecture and create your build.

The former standard viewer is geoexplorer. You still can use it and adjust it to your needs. 
Next to OpenLayers it's using geoext.

As a third option, there is still a hook for a plain leaflet integration which is currently not fully
working. I'm unsure if it will be continued as mapstore2 technically could use leaflet as well.

However, I know of a fork of Dejan (member of the user list) which is working. In case your're interested you might
contact him regarding his repository.

Best regards,

Toni
 

> Am 07.01.2020 um 20:39 schrieb Matheus Ximenes <Matheus.ximenes2016 at outlook.com>:
> 
> Hi Toni,
> 
> In fact the "base.html" folder helped me.
> 
> Now i need to know something, can i implement others open layers functions in my project, if so, where is the way?
> 
> a function example is: OVERVIEW MAP CONTROL (https://openlayers.org/en/latest/examples/overviewmap.html <https://openlayers.org/en/latest/examples/overviewmap.html>)
> 
> 
> thank you
> 
> Matheus Ximenes
> De: Toni Schönbuchner <toni.schoenbuchner at csgis.de <mailto:toni.schoenbuchner at csgis.de>>
> Enviado: segunda-feira, 6 de janeiro de 2020 23:53
> Para: Matheus Ximenes <Matheus.ximenes2016 at outlook.com>
> Cc: geonode-users <geonode-users at lists.osgeo.org>
> Assunto: Re: Change Header and Footer (Matheus Ximenes)
>  
> 
> Hi Matheus,
> 
> please have a look at:
> 
> https://github.com/GeoNode/geonode/blob/deec7d8c31db4a082964513c7a3710e4ed04a838/geonode/templates/base.html#L264-L400 <https://github.com/GeoNode/geonode/blob/deec7d8c31db4a082964513c7a3710e4ed04a838/geonode/templates/base.html#L264-L400>
> 
> https://github.com/GeoNode/geonode/blob/deec7d8c31db4a082964513c7a3710e4ed04a838/geonode/templates/base.html#L436-L525 <https://github.com/GeoNode/geonode/blob/deec7d8c31db4a082964513c7a3710e4ed04a838/geonode/templates/base.html#L436-L525>
> 
> regards,
> 
> – Toni
> 
>> 
>> 
>> Von: Matheus Ximenes <Matheus.ximenes2016 at outlook.com <mailto:Matheus.ximenes2016 at outlook.com>>
>> Betreff: [GeoNode-users] Change Header and Footer
>> Datum: 6. Januar 2020 um 20:47:59 MEZ
>> An: "geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>" <geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>>, geonode-users <geonode-users-bounces at lists.osgeo.org <mailto:geonode-users-bounces at lists.osgeo.org>>
>> 
>> 
>> Hello!
>> 
>> How do i change the header and footer, or rather which folders are these files.
>> I looked at the file "base.html" but it seems to me all commented, i don't know if a change there would be efficient
>> 
>> Thank you, 
>> 
>> Matheus Ximenes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20200108/654b2c0c/attachment.html>


More information about the geonode-users mailing list