CrunchyData / pg_featureserv

Lightweight RESTful Geospatial Feature Server for PostGIS in Go
Apache License 2.0
431 stars 90 forks source link

openlayers not included #149

Open techteam-bln opened 8 months ago

techteam-bln commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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

techteam-bln commented 8 months ago

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)?

JakobMiksch commented 8 months ago

You can place the files in your project folder.