Skip to content

Commit

Permalink
🗑️ #3 clean up unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
JAGFx committed Dec 19, 2020
1 parent 70d1dbf commit 0f2f0b0
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/utils/_maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ const init = () => {
} );

// Creating custom controls.
let rotate_control = new ol.control.Control( {
//target: 'rotate-button-div'
element: document.getElementById( 'rotate-wrapper' )
} );
//let rotate_control = new ol.control.Control( {
// //target: 'rotate-button-div'
// element: document.getElementById( 'rotate-wrapper' )
//} );
/*let speed_limit_control = new ol.control.Control({
element: document.getElementById('speed-limit')
});
Expand All @@ -99,8 +99,8 @@ const init = () => {
//new ol.control.OverviewMap(),
//new ol.control.Rotate(),
// new ol.control.MousePosition(), // DEBUG
new ol.control.Zoom(),
rotate_control
new ol.control.Zoom()
//rotate_control
//speed_limit_control,
//text_control
// TODO: Set 'tipLabel' on both zoom and rotate controls to language-specific translations.
Expand Down Expand Up @@ -145,12 +145,12 @@ const init = () => {
// Adding behavior to the custom button.
//let rotate_button = document.getElementById( 'rotate-button' );
//let rotate_arrow = rotate_button.firstElementChild;
d.map.getView().on( 'change:rotation', function ( ev ) {
//console.log( 'Plop' );
d.arrowRotate = {
transform: `rotate(${ ev.target.getRotation() }rad)`
};
} );
//d.map.getView().on( 'change:rotation', function ( ev ) {
// //console.log( 'Plop' );
// d.arrowRotate = {
// transform: `rotate(${ ev.target.getRotation() }rad)`
// };
//} );

// Detecting when the user interacts with the map.
// https://stackoverflow.com/q/32868671/
Expand Down Expand Up @@ -201,8 +201,8 @@ const getMapTilesLayer = ( projection, tileGrid ) => {
// tileSize: [256, 256]
// }),
wrapX: false,
minZoom: 2,
maxZoom: 9
minZoom: ZOOM_MIN,
maxZoom: ZOOM_MAX
} )
} );
};
Expand Down

0 comments on commit 0f2f0b0

Please sign in to comment.