[GeoNode-users] decrease (map query) panel size

Alessio Fabiani alessio.fabiani at geosolutionsgroup.com
Wed Jul 20 07:43:18 PDT 2022


Hello,
I guess, for this specific purpose, you can avoid touching the CSS.

I would try as follows:

 - Here
<https://github.com/GeoNode/geonode-mapstore-client/blob/master/geonode_mapstore_client/templates/geonode-mapstore-client/_geonode_config.html#L176>,
inside the "window.__GEONODE_CONFIG__.overrideLocalConfig =
function(localConfig, _)" block, you can potentially override any of the
variables of the "localConfig.json"
<https://github.com/GeoNode/geonode-mapstore-client/blob/master/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json>
.
 - The "localConfig.json"
<https://github.com/GeoNode/geonode-mapstore-client/blob/master/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json>
, has an object called "mapLayout"
<https://github.com/GeoNode/geonode-mapstore-client/blob/master/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json#L10>
with different sizes in pixels. "sm" stands for small (mobile phones), "md"
for medium (tablets and the like), "lg" for large (browsers, typically).
 - Try to modify one of those sizes and see what happens. Not sure if you
will need to rebuild the client by using "npm run compile". Probably yes.

If you need further customization, I guess you have to modify the ".less"
theme here
<https://github.com/GeoNode/geonode-mapstore-client/tree/master/geonode_mapstore_client/client/themes/geonode>.
Again, you will probably have to rebuild the client for the changes to take
effect.

Regards,
Alessio.


On Wed, Jul 20, 2022 at 4:22 PM Γιώργος Πούλος <gpoul2000 at hotmail.com>
wrote:

> Nice Information! This file is awesome! But I can't find the right
> property.
> Maybe the property isMobile: isMobile, is near to me but I think it can't
> give me the solution
> I think css will help me. If I knew the name of the panel as css propery I
> would try, but it is hard to find it.
> Any other suggestions?
>
> *Πούλος Γιώργος*
> *Δαβάκη 4, Λιβαδειά, 32100, *
> *Στερεά Ελλάδα*
> *t 6970115279, **mail: gpoul2000 at hotmail.com <gpoul2000 at hotmail.com>*
>
> P *Please consider the environment before printing this document*
> ------------------------------
> *From:* Alessio Fabiani <alessio.fabiani at geosolutionsgroup.com>
> *Sent:* Wednesday, July 20, 2022 11:00 AM
> *To:* Γιώργος Πούλος <gpoul2000 at hotmail.com>
> *Cc:* geonode-users at lists.osgeo.org <geonode-users at lists.osgeo.org>
> *Subject:* Re: [GeoNode-users] decrease (map query) panel size
>
> Try taking a look at the _geonode_config.html template here
>
>
> https://github.com/GeoNode/geonode-mapstore-client/blob/master/geonode_mapstore_client/templates/geonode-mapstore-client/_geonode_config.html
>
> and check if there's a property allowing you to fix the panel size. It
> should be related to the view that you want to tweak.
>
> On Tue, Jul 19, 2022 at 5:10 PM Γιώργος Πούλος <gpoul2000 at hotmail.com>
> wrote:
>
> ​Hello all,
>
>
>
> I want to decrease the size of right panel that the image shows.
>
> It hides a lot of map area (screenshot is in desktop). In mobile and
> tablet the problem is worst, because map area is disappearing!
>
> Can anybody help me? I think is pure CSS problem but I can’t understand
> how I can fix it.
>
>
>
>
>
>
>
>
>
>
> *Πούλος Γιώργος*
> *Δαβάκη 4, Λιβαδειά, 32100, *
> *Στερεά Ελλάδα*
> *t 6970115279, **mail: gpoul2000 at hotmail.com <gpoul2000 at hotmail.com>*
>
> P *Please consider the environment before printing this document*
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
>
> --
>
> Regards,
>
> Alessio Fabiani
>
> ==
> GeoServer Professional Services from the experts!
>
> Visit http://bit.ly/gs-services-us for more information.
> ==
>
> Ing. Alessio Fabiani
>
> @alfa7691
> Founder/Technical Lead
>
>
> GeoSolutions Group
> phone: +39 0584 962313
>
> fax:     +39 0584 1660272
>
> mob:   +39  331 6233686
>
> https://www.geosolutionsgroup.com/
>
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
> 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
> precisa che ogni circostanza inerente alla presente email (il suo
> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>
> This email is intended only for the person or entity to which it is
> addressed and may contain information that is privileged, confidential or
> otherwise protected from disclosure. We remind that - as provided by
> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
> e-mail or the information herein by anyone other than the intended
> recipient is prohibited. If you have received this email by mistake, please
> notify us immediately by telephone or e-mail.
>


-- 

Regards,

Alessio Fabiani

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Alessio Fabiani

@alfa7691
Founder/Technical Lead


GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  331 6233686

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20220720/42cf7193/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 423606 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20220720/42cf7193/attachment-0001.png>


More information about the geonode-users mailing list