Use a custom OpenLayers theme

Instead of having a customised copy of the default theme in the
app assets, use a custom theme that pulls in the default one and
then overrides things as needed.
This commit is contained in:
Tom Hughes 2012-08-01 21:40:40 +01:00
parent a357bab334
commit 2a11b9682c
6 changed files with 62 additions and 480 deletions

View file

@ -19,7 +19,7 @@ function createMap(divName, options) {
],
numZoomLevels: 20,
displayProjection: new OpenLayers.Projection("EPSG:4326"),
theme: "<%= asset_path 'theme/default/style.css' %>"
theme: "<%= asset_path 'theme/openstreetmap/style.css' %>"
});
var mapnik = new OpenLayers.Layer.OSM.Mapnik(i18n("javascripts.map.base.standard"), {