Is the width of feature info dock adjustable?

211 views
Skip to first unread message
Assigned to stefan...@geosolutionsgroup.com by lorenzo...@geosolutionsgroup.com

Michael Steigemann

unread,
Sep 9, 2020, 2:12:34 AM9/9/20
to mapstore-...@googlegroups.com
Hi!

I would like to know if the width of the feature info dock is adjustable? In my opinion it is a bit to wide.
In the documentation  https://mapstore.geo-solutions.it/mapstore/docs/api/plugins#plugins.Identify it is not written explicitly.


Thanks for your short answer an all the best,
Michael

Matteo Velludini

unread,
Sep 16, 2020, 11:45:55 AM9/16/20
to mapstore-...@googlegroups.com
Hi, it's easier than that.

you can just override the plugin identify cfg by adding this "size": 400,

--
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/CAE3pxwEqcHAY1O6S8kpi6mUu4ofTBqmJpefwtJD%3DZE6wQmZq3w%40mail.gmail.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.

Matteo Velludini

unread,
Sep 29, 2020, 4:58:49 AM9/29/20
to mapstore-...@googlegroups.com
Hi, did it work my suggestion?

Michael Steigemann

unread,
Sep 29, 2020, 5:16:02 AM9/29/20
to mapstore-...@googlegroups.com
Hi!

Sorry, I did not have the time to try so far. Now I tried to update the pluginsConfig.json in the root directory: 

Old value:

    {
      "name": "Identify",
      "glyph": "map-marker",
      "title": "plugins.Identify.title",
      "description": "plugins.Identify.description",
      "defaultConfig": {
        "showHighlightFeatureButton": true,
        "viewerOptions": {
          "container": "{context.ReactSwipe}"
        }
      }
    }

New value:

    {
      "name": "Identify",
      "glyph": "map-marker",
      "title": "plugins.Identify.title",
      "description": "plugins.Identify.description",
      "defaultConfig": {
   "size": 100,
        "showHighlightFeatureButton": true,
        "viewerOptions": {
          "container": "{context.ReactSwipe}"
        }
      }
    },


The other variant I tried is to change the localConfig.json in the root directory:

Old value:
            {
                "name": "Identify",
                "showIn": ["Settings"],
                "cfg": {
                    "showFullscreen": true,
                    "position": "bottom",
                    "size": 0.5,
                    "fluid": true,
                    "viewerOptions": {
                        "container": "{context.ReactSwipe}"
                    }
                }
            }

New value:

            {
                "name": "Identify",
                "showIn": ["Settings"],
                "cfg": {
                    "showFullscreen": true,
                    "position": "bottom",
                    "size": 100,
                    "fluid": true,
                    "viewerOptions": {
                        "container": "{context.ReactSwipe}"
                    }
                }


Somehow the width does not change even after restart... What do I do wrong?

All the best,
Michael

Matteo Velludini

unread,
Sep 29, 2020, 5:24:37 AM9/29/20
to mapstore-...@googlegroups.com
Hi, the last part is the correct one, but i would suggest a bigger number like 400

Maybe you are not updating the Identify plugin under plugins.desktop array?



Michael Steigemann

unread,
Sep 29, 2020, 2:58:50 PM9/29/20
to mapstore-...@googlegroups.com
Hi!
Thanks for your answer.

I tried it out in the desktop array. But unfortunately it doesn't work for me. I am using Release 2020.02.01 and downloaded the WAR from github. It does not work with my own built and the one from github.
This is my desktop-plugin array from localConfig.json. The config in general must be ok as the  editingAllowedRoles setting in the FeatureEditor and the elevation layers do work.
"desktop": [ "Details",
          {
            "name": "Map",
            "cfg": {
 "additionalLayers": [{
                "type": "wms",
                "url": "https://nbms2020/geoserver/wms",
                "title": "Elevation",
                "name": "srtm:srtm",
                "format": "application/bil16",
                "nodata": -9999,
                "visibility": true,
                "useForElevation": true

              }],
              "mapOptions": {
                "openlayers": {
                  "interactions": {
                    "pinchRotate": false,
                    "altShiftDragRotate": false
                  },
                  "attribution": {
                    "container": "#footer-attribution-container"
                  }
                },
                "leaflet": {
                  "attribution": {
                    "container": "#footer-attribution-container"
                  }
                }
              },
              "toolsOptions": {
                "scalebar": {
                  "container" : "#footer-scalebar-container"
                }
              }
            }
          }, "AutoMapUpdate", "HelpLink", "DrawerMenu", "Version", "Notifications", "BackgroundSelector", "Annotations",
            {
              "name": "Share",
              "cfg": {
                "advancedSettings": {
                  "bbox": true
                }
              }
            },
            {
                "name": "Identify",
                "cfg": {
"size": 800,

                    "showHighlightFeatureButton": true,
                    "viewerOptions": {
                        "container": "{context.ReactSwipe}"
                    },
                    "showEdit": true
                },
                "override": {
                  "Toolbar": {
                    "position": 11
                  }
                }
            },
            {
                "name": "Locate",
                "override": {
                    "Toolbar": {
                        "alwaysVisible": true
                    }
                }
            }, "Home",
{
 "name": "FeatureEditor",
 "cfg": {              
"editingAllowedRoles": [
 "USER", "ADMIN"
]}

},
            "WFSDownload",
            {
              "name": "QueryPanel",
              "cfg": {
                  "activateQueryTool": true,
                  "spatialOperations": [
                      {"id": "INTERSECTS", "name": "queryform.spatialfilter.operations.intersects"},
                      {"id": "CONTAINS", "name": "queryform.spatialfilter.operations.contains"},
                      {"id": "WITHIN", "name": "queryform.spatialfilter.operations.within"}
                  ],
                  "spatialMethodOptions": [
                      {"id": "Viewport", "name": "queryform.spatialfilter.methods.viewport"},
                      {"id": "BBOX", "name": "queryform.spatialfilter.methods.box"},
                      {"id": "Circle", "name": "queryform.spatialfilter.methods.circle"},
                      {"id": "Polygon", "name": "queryform.spatialfilter.methods.poly"}
                  ]
              }
            }, {
                "name": "TOC",
                "cfg": {
                    "activateMetedataTool": false,
                    "layerOptions": {
                      "legendOptions": {
                        "WMSLegendOptions": "forceLabels:on",
                        "scaleDependent": true,
                        "legendWidth": 12,
                        "legendHeight": 12
                      }
                    }
                }
            },
            "FilterLayer",
            "AddGroup",
            "TOCItemsSettings",
            "Tutorial", "MapFooter", {
                "name": "Measure",
                "cfg": {
                  "defaultOptions": {
                    "showAddAsAnnotation": true
                  }
                }
            }, "Print", "MapImport", {
                "name": "MapExport"
            }, {
                "name": "Settings",
                "cfg": {
                    "wrap": true
                }
            }, {
                "name": "MetadataExplorer",
                "cfg": {
                    "wrap": true
                }
            }, {
              "name": "About",
              "showIn": ["BurgerMenu"]
            }
            , {
              "name": "MousePosition",
              "cfg": {
   "showElevation": true,
                "editCRS": true,
                "showLabels": true,
                "showToggle": true,
                "filterAllowedCRS": ["EPSG:4326", "EPSG:3857"],
                "additionalCRS": {}
              }
            }, {
              "name": "CRSSelector",
              "cfg": {
                "additionalCRS": {

                },
                "filterAllowedCRS": [
                  "EPSG:4326",
                  "EPSG:3857"
                ],
                "allowedRoles": [
                  "ADMIN"
                ]
              }
            }, {
                "name": "Search",
                "cfg": {
                  "withToggle": ["max-width: 768px", "min-width: 768px"]
                }
            }, {
                "name": "Toolbar",
                "id": "NavigationBar",
                "cfg": {
                    "id": "navigationBar"
                }
            },
            "ScaleBox", {
              "name":"ZoomAll",
              "override": {
                "Toolbar": {
                  "alwaysVisible": true
                }
              }
            }, {
                "name": "MapLoading",
                "override": {
                    "Toolbar": {
                        "alwaysVisible": true
                    }
                }
            }, {
                "name": "ZoomIn",
                "override": {
                    "Toolbar": {
                        "alwaysVisible": true
                    }
                }
            }, {
                "name": "ZoomOut",
                "override": {
                    "Toolbar": {
                        "alwaysVisible": true
                    }
                }
            }, {
              "name": "Cookie",
              "cfg": {
                "externalCookieUrl" : "",
                "declineUrl" : "http://www.google.com"
                }
            },
            "OmniBar", "Login", "Save", "SaveAs", "BurgerMenu", "Expander", "Undo", "Redo", "FullScreen", "GlobeViewSwitcher", "SearchServicesConfig", "WidgetsBuilder", "Widgets",
            "WidgetsTray",
            "Timeline",
            "Playback",
            "FeedbackMask",
            "StyleEditor"
        ],

All the best,
Michael



Matteo Velludini

unread,
Sep 30, 2020, 4:19:55 AM9/30/20
to mapstore-...@googlegroups.com
ok i will try again, this time with latest  Release 2020.02.01 and i'll let you know.


Matteo Velludini

unread,
Sep 30, 2020, 1:17:02 PM9/30/20
to mapstore-...@googlegroups.com
It is very strange that it is not working for you.
as you can see in the image below i'm using your configs and it is displaying the identify tool with a width of 800px
image.png

Is the result of the image what you would like to achieve (imagine it with a smaller width) ?

Michael Steigemann

unread,
Oct 1, 2020, 2:53:04 AM10/1/20
to mapstore-...@googlegroups.com
Hi!
Thanks for your reply.
Perhaps it is related to the fact that I use Freemarker-Templates from GeoServer.

I will try to test it out over the weekend.

All the best,
Michael

michael.s...@googlemail.com

unread,
Oct 6, 2020, 4:08:57 AM10/6/20
to mapstore-developers
Hi!

I tested it out again. Everything works fine with normal maps. In stored maps based on contexts it does not work.

All the best,
Michael

Matteo Velludini

unread,
Oct 6, 2020, 4:16:13 AM10/6/20
to mapstore-...@googlegroups.com
Hi, yeah it is possible that is not working in contexts, i did not tested there.

i'll have a look and let you know

Matteo Velludini

unread,
Oct 8, 2020, 5:23:07 AM10/8/20
to mapstore-...@googlegroups.com
Hi i just tested with the last release v2020.02.01 and i discovered the following:

You can edit the size of Identify inside a context for new contexts only. 
To do that when you are in the third step in the creation process you can edit the config of the identify plugin.
image.png
image.png
This 233 comes from the pluginsConfig defaultConfig property
{
      "name""Identify",
      "glyph""map-marker",
      "title""plugins.Identify.title",
      "description""plugins.Identify.description",
      "defaultConfig": {
        "size"233,
        "showHighlightFeatureButton"true,
        "viewerOptions": {
          "container""{context.ReactSwipe}"
        }
      }
    },


Also be sure to clear the browser cache

Hope this helps

michael.s...@googlemail.com

unread,
Oct 9, 2020, 2:01:34 AM10/9/20
to mapstore-developers
Hi!

Thanks for the Info. Is this info already in the documentation?
If not in my opinion it would make sense to include it there. If you tell me where I will try to do this and create a pull request afterwards.

All the best,
Michael

Matteo Velludini

unread,
Oct 9, 2020, 3:38:30 AM10/9/20
to mapstore-...@googlegroups.com
Hi, 

Something has been explained here in the dev guide where you can use defaultConfig to

This is the document in the codebase



Michael Steigemann

unread,
Jul 8, 2023, 2:08:13 AM7/8/23
to mapstore-developers
Good morning, 
I have tried the feature with the release 2023.01.02 and have discovered that the toolbar moves to far to the left if the size of the feature info dock is configured smaller than the default:
2023-07-08 07_38_52-Window.png
Could you pleas verify if this is a bug?
Thanks and all the best,
Michael Steigemann

Michael Steigemann

unread,
Aug 8, 2023, 12:55:22 AM8/8/23
to mapstore-developers
Hello, unfortunately I did not receive an answer to my question concerning the possible bug. Should I create an issue in github? 
Thanks for your short feedback and all the best, 
Michael 

Lorenzo Natali

unread,
Aug 8, 2023, 4:01:41 AM8/8/23
to mapstore-developers
Hi Michael,
sorry if you didn't received a response. I think this can be identified as an issue, so if you have a series of steps to reproduce the issue, I think you can open the issue.
You can refer also this thread.

I see this thread has not been active for 3 years. 
If you have a question or comment that is relevant to an older thread, please create a new thread instead. 
This will help to keep the conversation organized and make it easier for everyone to follow, and increases the possibilities to receive a quick response.
This thread will be be marked as completed (3 years old this functionality was not present). 

Thank you for your patience and understanding. 

Reply all
Reply to author
Forward
0 new messages