Remove Share Button

99 views
Skip to first unread message

brunoberna...@gmail.com

unread,
Nov 22, 2020, 9:57:56 AM11/22/20
to mapstore-developers
Hi Guys,

I want to remove the share button in the thumbnail map, anyone can help me?
Button Share.PNG

Matteo Velludini

unread,
Dec 7, 2020, 10:50:01 AM12/7/20
to mapstore-...@googlegroups.com
Hi, sorry for the late reply

At the moment the share and details are always visible.

There is a property called shareToolEnabled that is not passed to the maps grid here
so it would not picked up from the localConfig even if used

here you can see the changes that needed to achieve what you asked for

I'm not creating a PR because first i need to agree internally (if this needs to be applied to featured cards etc.)
i'll let you know if my proposal gets the green light

On Sun, 22 Nov 2020 at 15:57, brunoberna...@gmail.com <brunoberna...@gmail.com> wrote:
Hi Guys,

I want to remove the share button in the thumbnail map, anyone can help me?

--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/bcb87c18-d117-459e-9551-142ed1dff627n%40googlegroups.com.


--

Regards,

Matteo Velludini

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.

==

Matteo Velludini

Software Engineer

 

GeoSolutions S.A.S.

Via di Montramito 3/A

55054  Massarosa (LU)

Italy

phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  333 8128928

 

http://www.geo-solutions.it

http://twitter.com/geosolutions_it

 

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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

brunoberna...@gmail.com

unread,
Dec 7, 2020, 11:47:15 AM12/7/20
to mapstore-developers
Hi Matteo,
Thanks for the answer!
I'll try this process and return if it worked or not here
Thanks!!

brunoberna...@gmail.com

unread,
Dec 11, 2020, 11:48:18 AM12/11/20
to mapstore-developers
Hello Matteo, I did the process you sent, but it didn't work. Would you have another method to do?  

Em segunda-feira, 7 de dezembro de 2020 às 12:50:01 UTC-3, Matteo V. escreveu:

Matteo Velludini

unread,
Dec 14, 2020, 4:07:04 AM12/14/20
to mapstore-...@googlegroups.com
Hi, the code i sent was to update our recent master branch (our development branch),

Are you using that?
also you can try to hide those buttons, but i recommend to try to debug what parameters arrives to the ResourceCard here

The changes i've sent you in a previous link was hiding the share tool in the maps page card.
Do you need to remove it also for other cards?

Bruno Neves

unread,
Dec 14, 2020, 2:53:18 PM12/14/20
to mapstore-...@googlegroups.com
Hi Matteo, I needed all the map sharing buttons not to appear in the map menu, would I do that?

brunoberna...@gmail.com

unread,
Jul 12, 2021, 1:15:47 PM7/12/21
to mapstore-developers
Hey guys,

I'm still having trouble hiding the SHARE button from maps as it allows direct access to our system's maps, could someone help me?

Michael Steigemann

unread,
Jul 18, 2021, 2:17:36 AM7/18/21
to mapstore-developers
Hello Bruno!

I have also tried to remove the share button without success. Even when I build the mapstore.war  and 
disable the SharePlugin in plugins.js (SharePlugin: require('../plugins/Share') the button remains.

In my opinion this might be a bug in mapstore, as I am quite sure that I was able to remove the share in a older mapstore version back in 2020 ( my personal note is from 27.5.2020).

All the best,
Michael

brunoberna...@gmail.com

unread,
Jul 19, 2021, 7:00:36 AM7/19/21
to mapstore-developers
Hello Michael,

Many thanks for the reply!
Maybe it's a mapstore bug anyway, as it doesn't make sense to remove the sharing plugin and keep it running.
Let's see if the developers fix this likely bug
Have a great week!

Lorenzo Natali

unread,
Jul 20, 2021, 8:41:40 AM7/20/21
to mapstore-developers
Hi, 
I opened this issue to fix this:  https://github.com/geosolutions-it/MapStore2/issues/7126, you can follow the status of this task directly on GitHub.

JFI. the changes suggested by have to be applied to "Maps" plugin (that is the plugin that shows the map list in the home page).
The share plugin a different plugin, used in the resource page (e.g. map) to show the share window in the map viewer (or other contents).
Reply all
Reply to author
Forward
0 new messages