Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1097 from geoadmin/gal_rename_services
Browse files Browse the repository at this point in the history
CSS: Use attribute filter css instead of class name for import WMS and K...
  • Loading branch information
cedricmoullet committed Feb 13, 2014
2 parents de00176 + 3fcf08a commit 0435c4e
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 32 deletions.
4 changes: 2 additions & 2 deletions src/components/importkml/style/importkml.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* General */
.import-kml {
[ga-import-kml] {
width: 420px;
padding: 10px;
position: relative;
Expand Down Expand Up @@ -91,7 +91,7 @@ form {
}

/* OVERRIDE BOOTSTRAP CSS */
.import-kml {
[ga-import-kml] {

.nav > li > a {
padding: 0px 10px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/importwms/style/importwms.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.import-wms {
[ga-import-wms] {

position: relative;
background-color: white;
Expand Down
9 changes: 8 additions & 1 deletion src/components/timeselector/TimeSelectorDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@
restrict: 'A',
template: '<a href="#" ng-click="toggle($event)" ng-class="stateClass">' +
'</a>',
scope: {
isActive: '=gaTimeSelectorBtActive'
},
link: function(scope, elt, attrs) {

// Enable the button if it is disable
Expand Down Expand Up @@ -246,7 +249,8 @@
},
scope: {
map: '=gaTimeSelectorMap',
options: '=gaTimeSelectorOptions'
options: '=gaTimeSelectorOptions',
isActive: '=gaTimeSelectorActive'
},
controller: 'GaTimeSelectorDirectiveController',
link: function(scope, elt, attrs, controller) {
Expand Down Expand Up @@ -284,8 +288,11 @@
// Watchers
scope.$watch('isActive', function(active) {
if (angular.isDefined(active)) {
elt.toggle(active);
scope.stateClass = (active) ? 'active' : '';
applyNewYear((active ? scope.currentYear : undefined));
} else {
elt.hide();
}
});

Expand Down
68 changes: 40 additions & 28 deletions src/index.mako.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,14 @@
</div>
<div ga-attribution ga-attribution-map="map"></div>
</div>
<!-- <div ga-time-selector-bt id="time-selector-bt"></div> -->
<div ga-swipe ga-swipe-map="map" ga-swipe-active="isSwipeActive"></div>
<!--div ga-time-selector-bt
ga-time-selector-bt-active="isTimeSelectorActive"-->
</div>
<div ga-swipe
ga-swipe-map="map"
ga-swipe-active="isSwipeActive"
style="display:none;">
</div>
</div> <!-- #map -->


Expand Down Expand Up @@ -163,7 +169,11 @@
</div>

<div ng-controller="GaTimeSelectorController">
<div ga-time-selector ga-time-selector-map="map" ga-time-selector-options="options" ng-show="isActive" id="time-selector" class="ng-hide"></div>
<div ga-time-selector ga-time-selector-map="map"
ga-time-selector-options="options"
ga-time-selector-active="isTimeSelectorActive"
style="display:none;">
</div>
</div>

<div id="pulldown" class="{{(globals.catalogShown && globals.selectionShown) ? 'selection-and-catalog-shown' : ''}}">
Expand Down Expand Up @@ -229,12 +239,12 @@
</li>
<li><!-- Measure -->
<a href="" ng-click="isMeasureActive = !isMeasureActive">
<span ng-class="{'selected': isMeasureActive}" translate="{{'measure'}}"></span>
<span ng-class="{'selected': isMeasureActive}" translate>measure</span>
</a>
</li>
<li><!-- Feature Tree -->
<a href="" ng-click="globals.isFeatureTreeActive = !globals.isFeatureTreeActive">
<span ng-class="{'selected': globals.isFeatureTreeActive}" translate="{{(globals.isFeatureTreeActive) ? 'object_information' : 'object_information'}}"></span>
<span ng-class="{'selected': globals.isFeatureTreeActive}" translate>object_information</span>
</a>
</li>
</ul>
Expand Down Expand Up @@ -394,51 +404,53 @@ <h4 class="modal-title" translate>error</h4>

<!-- Popup: Import WMS -->
<div ga-popup="importWmsPopupShown"
ga-popup-options="{title:'import_wms'}"
ga-draggable=".ga-popup-title"
id="import-wms-popup" >
ga-popup-options="{title:'import_wms'}"
ga-draggable=".ga-popup-title"
id="import-wms-popup" >
<div ng-controller="GaImportWmsController">
<div ga-import-wms
ga-import-wms-map="map"
ga-import-wms-options="options"
id="import-wms"
class="import-wms">
ga-import-wms-map="map"
ga-import-wms-options="options">
</div>
</div>
</div> <!-- end Import WMS -->

<!-- Popup: Import KML -->
<div ga-popup="importKmlPopupShown"
ga-popup-options="{title:'import_kml'}"
ga-draggable=".ga-popup-title"
id="import-kml-popup" >
ga-popup-options="{title:'import_kml'}"
ga-draggable=".ga-popup-title"
id="import-kml-popup" >
<div ng-controller="GaImportKmlController">
<div ga-import-kml
ga-import-kml-map="map"
ga-import-kml-options="options"
id="import-kml"
class="import-kml">
ga-import-kml-map="map"
ga-import-kml-options="options">
</div>
</div>
</div><!-- end Import KML -->

<!-- Popup: Measure -->
<div ga-popup="isMeasureActive"
ga-popup-options="{title:'measure',showPrint:true}"
ga-draggable=".ga-popup-title"
id="measure-popup" >
ga-popup-options="{title:'measure',showPrint:true}"
ga-draggable=".ga-popup-title"
id="measure-popup" >
<div ng-controller="GaMeasureController">
<div ga-measure ga-measure-map="map" ga-measure-options="options" ga-measure-active="isMeasureActive"></div>
<div ga-measure
ga-measure-map="map"
ga-measure-options="options"
ga-measure-active="isMeasureActive"></div>
</div>
</div><!-- end Measure -->

<!-- Popup: Feature Tree -->
<div ga-popup="globals.isFeatureTreeActive"
ga-popup-options="{title: 'object_information'}"
ga-draggable=".ga-popup-title"
id="featuretree-popup">
<div id="featuretree" ng-controller="GaFeaturetreeController">
<div ga-featuretree ga-featuretree-options="options" ga-featuretree-map="map"></div>
ga-popup-options="{title: 'object_information'}"
ga-draggable=".ga-popup-title"
id="featuretree-popup">
<div ng-controller="GaFeaturetreeController"
id="featuretree">
<div ga-featuretree
ga-featuretree-options="options"
ga-featuretree-map="map"></div>
</div>
</div>

Expand Down

0 comments on commit 0435c4e

Please sign in to comment.