Skip to content

Commit

Permalink
wip: Ability to rotate the map - reset canvas to default pane (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Jun 3, 2024
1 parent 0a9aca8 commit 8ab87dc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions map/client/mixins/map/mixin.canvas-layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,6 @@ export const canvasLayers = {

// Check for valid type
if (layerOptions.type !== 'kanvasLayer') return
// Defaults to rotate pane
if (this.map._rotate && !options.pane) options.pane = 'rotatePane'
const layer = this.createLeafletLayer(options)
this.setCanvasLayerDrawCode(layer, layerOptions.draw)
if (layerOptions.userData) this.setCanvasLayerUserData(layer, layerOptions.userData)
Expand Down

0 comments on commit 8ab87dc

Please sign in to comment.