Skip to content

Removing the default OL theme is unexpected #1

@gravitystorm

Description

@gravitystorm

In map.rb there is the line

@options = {:theme => false}.merge(options)

This removes the default theming from openlayers, and causes various controls (permalink, attribution) to pile up in the top-left of the map. Arguably this is a useful thing when you are trying to customise the look of OpenLayers, but you then need to supply the olControlAttribution etc style declarations yourself.

Either

  • This code should be removed, to allow the default OL theme to apply by default, or
  • This should be kept, and documented that you can revert to normal with something like theme: "/openlayers/theme/default/style.css", or
  • This should be kept, and clearly documented that you will need to make your own style declarations covering the same range of things as is in style.css

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions