Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openlayers not included #149

Open
techteam-bln opened this issue Oct 26, 2023 · 4 comments
Open

openlayers not included #149

techteam-bln opened this issue Oct 26, 2023 · 4 comments

Comments

@techteam-bln
Copy link

Hi,
I found your realy interesting project today.
It works realy nice and your roadmap looks nice, too.

My problem is, that i want to use it inside an air gapped network, so I have noch chance to load javascripts from outside.

It would be nice, that the openlayers script would be included in the build or it ist posible to define an alternate url inside the config, like the basemap url.

Thanks in advance

@JakobMiksch
Copy link
Contributor

relates to #145

@techteam-bln you can customize the web template. You can copy your own version and reference it via AssetsPath Download the OpenLayers JS and CSS and replace the imports in HTML to point to the downloaded files . Then the website should work without internet. However, the basemap will NOT work. If have a locally hosted basemap in your environment you could use this. Otherwise your background might stay white.

@techteam-bln
Copy link
Author

Hi,
thanks fpor your answer, this sounds realy nice.
I have not checked the content of the asset folder. facepalm

@techteam-bln
Copy link
Author

I try to put ths openlayer files into the asset path and change the path inside the map_script.gohtml.
It seems that this is not the rigth way.
Can I place this files annywhere inside the project folder or can I load the files only from an external url (other webserver)?

@techteam-bln techteam-bln reopened this Oct 27, 2023
@JakobMiksch
Copy link
Contributor

You can place the files in your project folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants