Customize MapStore2

912 views
Skip to first unread message

George Newman

unread,
Dec 7, 2016, 4:39:19 AM12/7/16
to mapstore-users
Hi Everyone

I have install Mapstore2 and able to create test app. 
And question: How I can customize Home page?
Now on my home page is only title and main map and i want to add more info on that

Thank you

Gaet. B

unread,
Oct 19, 2017, 6:30:08 AM10/19/17
to mapstor...@googlegroups.com
Hi George,

I ask the same question in mapstore-dev and nobody answer. 

Mauro answer me here about that :

Cordially.

Nicolas D.

unread,
Nov 13, 2017, 5:49:20 PM11/13/17
to mapstore-users
Hi,
I would like to know, how to permanently modify the Map Viewer for OpenLayers, and theme for geosolutions by default, when "MapType" and "ThemeSwitcher" fonctions are erased in localConfig.json, please ?
Regards,
Nicolas

Mauro Bartolomeoli

unread,
Nov 14, 2017, 3:52:04 AM11/14/17
to mapstor...@googlegroups.com
Hi Nicolas,
for both you can edit the initialState in localConfig.json, adding the following fragment:

"initialState": {
      "defaultState": {
        "maptype": {
          "mapType": "openlayers"
        },
        "theme": {
          "selectedTheme": {"id":"geosolutions"}
        },
        ...
}



--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-users+unsubscribe@googlegroups.com.
To post to this group, send email to mapstore-users@googlegroups.com.
Visit this group at https://groups.google.com/group/mapstore-users.
For more options, visit https://groups.google.com/d/optout.

Mauro Bartolomeoli

unread,
Nov 14, 2017, 3:52:34 AM11/14/17
to mapstor...@googlegroups.com
Hi Nicolas,
for both you can edit the initialState in localConfig.json, adding the following fragment:

"initialState": {
      "defaultState": {
        "maptype": {
          "mapType": "openlayers"
        },
        "theme": {
          "selectedTheme": {"id":"geosolutions"}
        },
        ...
}
2017-11-13 23:49 GMT+01:00 Nicolas D. <hielo...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-users+unsubscribe@googlegroups.com.
To post to this group, send email to mapstore-users@googlegroups.com.
Visit this group at https://groups.google.com/group/mapstore-users.
For more options, visit https://groups.google.com/d/optout.



--

Regards,

Mauro Bartolomeoli

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

Dott. Mauro Bartolomeoli
@mauro_bart
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

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.


Nicolas D.

unread,
Nov 15, 2017, 7:15:32 PM11/15/17
to mapstore-users
Hi Mauro,
Thank you for your reply. Really good.
Is there a place in this forum, where I can express ideas to give you some ways to improve this application?
Regards,
Nicolas
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-user...@googlegroups.com.
To post to this group, send email to mapstor...@googlegroups.com.

Mauro Bartolomeoli

unread,
Nov 16, 2017, 3:33:09 AM11/16/17
to mapstor...@googlegroups.com
Hi Nicolas, I think THIS is the right place, so feel free to express your ideas. Maybe you can open new topics for each macro-idea you wish to discuss.

Mauro


To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-users+unsubscribe@googlegroups.com.
To post to this group, send email to mapstore-users@googlegroups.com.

Lorenzo Natali

unread,
Nov 16, 2017, 4:53:23 AM11/16/17
to mapstor...@googlegroups.com
Hi,
I noticed this configuration set up only the start point of the mapType selector.
To configure the home page to open only openlayers map you should add 
 "maptype": {
          "mapType": "openlayers"
 },
 "maps": {
          "mapType": "openlayers"
 },

If you want to remove leaflet at all you can remove also these imports from index.html to improve the initial loading time: 

...

The same thing can be done for cesium, if you don't want 3D maps.


Nicolas D.

unread,
Nov 16, 2017, 4:24:35 PM11/16/17
to mapstore-users
Hi Lorenzo,

Thank you for your reply.
Regards,
Nicolas

Nicolas D.

unread,
Nov 16, 2017, 5:39:32 PM11/16/17
to mapstore-users
Hi,
For information : People can go to the page add a new map without being connected : https://mapstore.geo-solutions.it/mapstore/#/viewer/leaflet/new
What is the function : configure search services, I don't understand?
Thanks,
Nicolas

Lorenzo Natali

unread,
Nov 17, 2017, 3:52:32 AM11/17/17
to mapstor...@googlegroups.com
Hi Nicolas,
Yes the "new" page is reachable via URL but not via link from the home page, and they anyway can not save anything. 
In the future we could redirect users to the home page, if they followed the wrong link.

The "configure search services" functionalities allows to use some services (for the moment only WFS is supported) to display results in the top-right search bar (geocoding) for a map.
For instance this map replaces the standard geocoding (nominatim) to search only US states via WFS. 

Immagine incorporata 1

To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-users+unsubscribe@googlegroups.com.
To post to this group, send email to mapstore-users@googlegroups.com.

Mauro Bartolomeoli

unread,
Nov 17, 2017, 3:52:47 AM11/17/17
to mapstor...@googlegroups.com
Hi Nicolas,

2017-11-16 23:39 GMT+01:00 Nicolas D. <hielo...@gmail.com>:
Hi,

For information : People can go to the page add a new map without being connected : https://mapstore.geo-solutions.it/mapstore/#/viewer/leaflet/new

Yes, we are aware of that, but since they cannot save if they are not logged in, it's not a big issue.
 

What is the function : configure search services, I don't understand?

You can configure a WFS service to be used by the searh plugin (it will be used in addition to Nominatim):

Immagine incorporata 4 Immagine incorporata 2 Immagine incorporata 3

Then you will get:

Immagine incorporata 5

Reply all
Reply to author
Forward
0 new messages