Skip to content

Commit

Permalink
Conformed for lintspacing
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianBurke committed Jul 12, 2024
1 parent 1ebe313 commit 8ed9d27
Show file tree
Hide file tree
Showing 22 changed files with 84 additions and 88 deletions.
66 changes: 32 additions & 34 deletions wet-boew/geomap/demo/client-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,35 @@
*/
/*global ol: false*/
( function( $, wb ) {
"use strict";

var $document = wb.doc,
mapSample;

$document.on( "wb-ready.wb-geomap", "#sample_map", function( event, map ) {

// Get the sample_map to use in zoomFeature function
mapSample = map;
var $aoiExtent = $( "#geomap-aoi-extent-" + mapSample.id ),
$aoiExtentLonLat = $( "#geomap-aoi-extent-lonlat-" + mapSample.id );

if ( $aoiExtent ) {

$aoiExtent.on( "change", function() {

//console.log( "BBox: " + $( this ).val() );
} );

$aoiExtentLonLat.on( "change", function() {

//console.log( "BBox LonLat: " + $( this ).val() );
} );
}
} );

$document.on( "wb-ready.wb-geomap", "#location_map", function( event, map ) {

// Zoom to location on location_map
map.getView().setCenter( ol.proj.transform( [ -75.70535, 45.3995 ], "EPSG:4326", "EPSG:3978" ) );
map.getView().setZoom( 5 );
} );

} )( jQuery, wb );
"use strict";
var $document = wb.doc,
mapSample;
$document.on( "wb-ready.wb-geomap", "#sample_map", function( event, map ) {

// Get the sample_map to use in zoomFeature function
mapSample = map;
var $aoiExtent = $( "#geomap-aoi-extent-" + mapSample.id ),
$aoiExtentLonLat = $( "#geomap-aoi-extent-lonlat-" + mapSample.id );

if ( $aoiExtent ) {

$aoiExtent.on( "change", function() {

//console.log( "BBox: " + $( this ).val() );
} );

$aoiExtentLonLat.on( "change", function() {

//console.log( "BBox LonLat: " + $( this ).val() );
} );
}
} );

$document.on( "wb-ready.wb-geomap", "#location_map", function( event, map ) {

// Zoom to location on location_map
map.getView().setCenter( ol.proj.transform( [ -75.70535, 45.3995 ], "EPSG:4326", "EPSG:3978" ) );
map.getView().setZoom( 5 );
} );

} )( jQuery, wb );
2 changes: 1 addition & 1 deletion wet-boew/geomap/demo/config-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,4 +332,4 @@ var wet_boew_geomap = {
}
}
]
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/demo/config-esri-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ var wet_boew_geomap = {
numZoomLevels: 2
}
}
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/demo/config-esri-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ var wet_boew_geomap = {
numZoomLevels: 2
}
}
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/demo/config-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,4 @@ var wet_boew_geomap = {
}
}
]
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/demo/config-osm-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ var wet_boew_geomap = {
zoomLevel: 11
}
}
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/demo/config-osm-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ var wet_boew_geomap = {
zoomLevel: 11
}
}
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/demo/config-xyz-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ var wet_boew_geomap = {
zoomLevel: 5
}
}
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/demo/config-xyz-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ var wet_boew_geomap = {
zoomLevel: 5
}
}
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/demo/configwms-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ var wet_boew_geomap = {
}
},
overlays: []
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/demo/configwms-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ var wet_boew_geomap = {
}
},
overlays: []
};
};
66 changes: 32 additions & 34 deletions wet-boew/geomap/v4.0.30/demo/client-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,35 @@
*/
/*global ol: false*/
( function( $, wb ) {
"use strict";

var $document = wb.doc,
mapSample;

$document.on( "wb-ready.wb-geomap", "#sample_map", function( event, map ) {

// Get the sample_map to use in zoomFeature function
mapSample = map;
var $aoiExtent = $( "#geomap-aoi-extent-" + mapSample.id ),
$aoiExtentLonLat = $( "#geomap-aoi-extent-lonlat-" + mapSample.id );

if ( $aoiExtent ) {

$aoiExtent.on( "change", function() {

//console.log( "BBox: " + $( this ).val() );
} );

$aoiExtentLonLat.on( "change", function() {

//console.log( "BBox LonLat: " + $( this ).val() );
} );
}
} );

$document.on( "wb-ready.wb-geomap", "#location_map", function( event, map ) {

// Zoom to location on location_map
map.getView().setCenter( ol.proj.transform( [ -75.70535, 45.3995 ], "EPSG:4326", "EPSG:3978" ) );
map.getView().setZoom( 5 );
} );

} )( jQuery, wb );
"use strict";
var $document = wb.doc,
mapSample;
$document.on( "wb-ready.wb-geomap", "#sample_map", function( event, map ) {

// Get the sample_map to use in zoomFeature function
mapSample = map;
var $aoiExtent = $( "#geomap-aoi-extent-" + mapSample.id ),
$aoiExtentLonLat = $( "#geomap-aoi-extent-lonlat-" + mapSample.id );

if ( $aoiExtent ) {

$aoiExtent.on( "change", function() {

//console.log( "BBox: " + $( this ).val() );
} );

$aoiExtentLonLat.on( "change", function() {

//console.log( "BBox LonLat: " + $( this ).val() );
} );
}
} );

$document.on( "wb-ready.wb-geomap", "#location_map", function( event, map ) {

// Zoom to location on location_map
map.getView().setCenter( ol.proj.transform( [ -75.70535, 45.3995 ], "EPSG:4326", "EPSG:3978" ) );
map.getView().setZoom( 5 );
} );

} )( jQuery, wb );
2 changes: 1 addition & 1 deletion wet-boew/geomap/v4.0.30/demo/config-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,4 +332,4 @@ var wet_boew_geomap = {
}
}
]
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/v4.0.30/demo/config-esri-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ var wet_boew_geomap = {
numZoomLevels: 2
}
}
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/v4.0.30/demo/config-esri-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ var wet_boew_geomap = {
numZoomLevels: 2
}
}
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/v4.0.30/demo/config-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,4 @@ var wet_boew_geomap = {
}
}
]
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/v4.0.30/demo/config-osm-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ var wet_boew_geomap = {
zoomLevel: 11
}
}
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/v4.0.30/demo/config-osm-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ var wet_boew_geomap = {
zoomLevel: 11
}
}
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/v4.0.30/demo/config-xyz-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ var wet_boew_geomap = {
zoomLevel: 5
}
}
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/v4.0.30/demo/config-xyz-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ var wet_boew_geomap = {
zoomLevel: 5
}
}
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/v4.0.30/demo/configwms-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ var wet_boew_geomap = {
}
},
overlays: []
};
};
2 changes: 1 addition & 1 deletion wet-boew/geomap/v4.0.30/demo/configwms-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ var wet_boew_geomap = {
}
},
overlays: []
};
};

0 comments on commit 8ed9d27

Please sign in to comment.