RE: Liferay 7.3.7-ga8, persist Openstreetmap

Olaf Kock, modified 3 Years ago. New Member Posts: 4 Join Date: 5/17/22 Recent Posts

I am using Liferay 7.3.7-ga8. To enable Openstreetmap, I can do it as the following: Control Panel -> Instance Settings -> Third Party -> Maps -> Select Openstreetmap and Save.

However, I am trying to persist this configuration, so that when I rebuild Liferay, Openstreetmap option will be already enabled.

There are no additional information that I can find from portal properties. For other example (e.g. FontAwesome under System Settings), there is a menu where I can export the configuration. This is unfortunately not the case for Openstreetmap. Can anyone provide help or maybe point me in the direction I should be looking more into? Thx in advance for your help. It is greatly appreciated.

thumbnail
Olaf Kock, modified 3 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

I'm not sure what you mean with "rebuilding Liferay" - is that for installation on another server?

It seems that the choice for maps is persisted differently than most of the Instance Settings, and it ends up being persisted in the database. That would mean that you'd either need to start with a backup of an existing database, or configure it again (or write something that interfaces with the API. I'm not aware of a way to bring this setting over to a new version through an external configuration.

(but maybe someone corrects me and there is such a thing)

Jamie Sammons, modified 3 Years ago. New Member Posts: 4 Join Date: 5/17/22 Recent Posts

Yes, I meant for e.g. if I install it on another server. Alright thx, if there is no other way, then I will probably look into persisting over database.