1

I want to modify the GeoServer preview page that brings up a simple OpenLayers page.

The GeoServer documentation is very rare: OpenLayers format=application/openlayers Just saying: 'Generates an OpenLayers HTML application.'

Where and how can I modify this page? For example, I want to expand the map preview.

1 Answer 1

1

If you want to modify how the default OpenLayers preview page works, you'll need to modify the GeoServer codebase.

Alternately, you can create your own standalone webpage. I don't recommend copying GeoServer's generated code because last I checked it was still using OpenLayers 2 (latest is OpenLayers 4).

1
  • 2
    Nowadays it's using OpenLayers 3, but yes, it's just a preview, not meant to be used as a base for a larger application. Commented Jul 24, 2017 at 13:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.