Changeset d2b69f4 in osmose-frontend


Ignore:
Timestamp:
Mar 18, 2014 10:08:58 PM (6 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Branches:
master
Children:
6c1de0e
Parents:
5f669ef
git-author:
Frédéric Rodrigo <fred.rodrigo@…> (08/03/2014 16:03:18)
git-committer:
Frédéric Rodrigo <fred.rodrigo@…> (18/03/2014 22:08:58)
Message:

Change layer selector on small screen

Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • .gitmodules

    r7926c76 rd2b69f4  
    1111        path = externals/cssmin 
    1212        url = https://github.com/zacharyvoase/cssmin.git 
     13[submodule "externals/Leaflet.ActiveLayers"] 
     14        path = externals/Leaflet.ActiveLayers 
     15        url = https://github.com/vogdb/Leaflet.ActiveLayers.git 
     16[submodule "externals/SelectLayersControl"] 
     17        path = externals/SelectLayersControl 
     18        url = https://github.com/vogdb/SelectLayersControl.git 
  • static/map/map.js

    ra870ebb rd2b69f4  
    3030  editor.errors = osmoseLayer; 
    3131 
    32   var layers = L.control.layers(mapBases, mapOverlay); 
     32  var layers; 
     33  if ($(window).height() < 640) { 
     34    layers = L.control.selectLayers(mapBases, mapOverlay); 
     35  } else { 
     36    layers = L.control.layers(mapBases, mapOverlay); 
     37  } 
    3338  map.addControl(layers); 
    3439 
  • tools/assets.py

    r5ceb062 rd2b69f4  
    2929    'map/leaflet-plugins/layer/tile/Bing.js', 
    3030    'map/layers.js', 
     31    'map/leaflet.active-layers.min.js', 
     32    'map/leaflet.select-layers.min.js', 
    3133    'map/leaflet-sidebar/src/L.Control.Sidebar.js', 
    3234    'map/leaflet-control-geocoder/Control.Geocoder.js', 
Note: See TracChangeset for help on using the changeset viewer.