Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map Dragging Issue #43

Closed
anujdivesh opened this issue Apr 25, 2022 · 6 comments
Closed

Map Dragging Issue #43

anujdivesh opened this issue Apr 25, 2022 · 6 comments

Comments

@anujdivesh
Copy link

Hi:
I am using leaflet-side-by-side to compare two tile layers. When i drag the burger icon, the map drags instead of the dragger line.

Thanks.

@haexyh
Copy link

haexyh commented May 13, 2022

this plugin doesn't support version 1.8.0 . I downgraded to 1.7.1 and it works fine. The 1.8.0 release does contain breaking changes. This library is affected.
@anujdivesh

@NaomiRadke
Copy link

Hi!
I have a similar problem: I am using vue-leaflet (https://github.com/vue-leaflet/vue-leaflet) which in turn is based on leaflet version 1.6.0.
Since I last updated my web browser (Chrome) I have troubles moving the slider. Sometimes the slider moves a tiny bit but then the map is dragged instead.

Is there any hack how to make the map drag stock while moving the slider?
My current solution is disabling map dragging when the side-by-side slider is added like so:

this.sideBySide.addTo(map);        
        map.dragging.disable()

And then enable it again, when removing the slider. But that's not what I ideally want, since I won't be able to drag the map while the slider is added to the map. I only want to disable the map when the slider is moved.
I was fiddling around with the dividermove event of leaflet side-by-side like so:

this.sideBySide.on('dividermove', map.dragging.disable())

Yet, the event is not getting fired.

Any help or hints are welcome!

@lukastemberga
Copy link

Found a working solution... (but not fully tested!)
I changed index.js of module.

  1. step remove v0.7 backwards compatibility (code below):
function on (el, types, fn, context) {
  types.split(' ').forEach(function (type) {
    L.DomEvent.on(el, type, fn, context)
  })
}

// Leaflet v0.7 backwards compatibility
function off (el, types, fn, context) {
  types.split(' ').forEach(function (type) {
    L.DomEvent.off(el, type, fn, context)
  })
}
  1. Fix deprecated events mixin:
    includes: L.Mixin.Events,
    change this to:
    includes: L.Evented.prototype,

  2. Fix _addEvents and _removeEvents functions:
    There seems to be a problem with this ternary: L.Browser.touch ? 'touchstart' : 'mousedown'
    That is why I split those functions into separate eventListeners.

Old code:

_addEvents: function () {
    var range = this._range
    var map = this._map
    if (!map || !range) return
    map.on('move', this._updateClip, this)
    map.on('layeradd layerremove', this._updateLayers, this)
    on(range, getRangeEvent(range), this._updateClip, this)
    on(range, L.Browser.touch ? 'touchstart' : 'mousedown', cancelMapDrag, this)
    on(range, L.Browser.touch ? 'touchend' : 'mouseup', uncancelMapDrag, this)
  },

  _removeEvents: function () {
    var range = this._range
    var map = this._map
    if (range) {
      off(range, getRangeEvent(range), this._updateClip, this)
      off(range, L.Browser.touch ? 'touchstart' : 'mousedown', cancelMapDrag, this)
      off(range, L.Browser.touch ? 'touchend' : 'mouseup', uncancelMapDrag, this)
    }
    if (map) {
      map.off('layeradd layerremove', this._updateLayers, this)
      map.off('move', this._updateClip, this)
    }
  }

Replaced with:

_addEvents: function () {
    var range = this._range;
    var map = this._map;
    if (!map || !range) return;
    map.on("move", this._updateClip, this);
    map.on("layeradd layerremove", this._updateLayers, this);
    L.DomEvent.on(range, getRangeEvent(range), this._updateClip, this);
    L.DomEvent.on(range, "touchstart", cancelMapDrag, this);
    L.DomEvent.on(range, "touchend", uncancelMapDrag, this);
    L.DomEvent.on(range, "mousedown", cancelMapDrag, this);
    L.DomEvent.on(range, "mouseup", uncancelMapDrag, this);
  },

  _removeEvents: function () {
    var range = this._range;
    var map = this._map;
    if (range) {
      L.DomEvent.off(range, getRangeEvent(range), this._updateClip, this);
      L.DomEvent.off(range, "touchstart", cancelMapDrag, this);
      L.DomEvent.off(range, "touchend", uncancelMapDrag, this);
      L.DomEvent.off(range, "mousedown", cancelMapDrag, this);
      L.DomEvent.off(range, "mouseup", uncancelMapDrag, this);
    }
    if (map) {
      map.off("layeradd layerremove", this._updateLayers, this);
      map.off("move", this._updateClip, this);
    }
  },

I got this working with React leaflet (Leaflet v.1.8.0) and I haven't tested this solution a lot. There is probably a way to get it working so that support for v.0.7 doesn't need to be removed.

Hope this helps someone. If I catch some time, I'll make a pull request or make a new fork.

@tkozlow
Copy link

tkozlow commented Jun 17, 2022

Hi: I am using leaflet-side-by-side to compare two tile layers. When i drag the burger icon, the map drags instead of the dragger line.

Thanks.

Same issue here.

@tkozlow
Copy link

tkozlow commented Jun 17, 2022

Found a working solution... (but not fully tested!) I changed index.js of module.

  1. step remove v0.7 backwards compatibility (code below):
function on (el, types, fn, context) {
  types.split(' ').forEach(function (type) {
    L.DomEvent.on(el, type, fn, context)
  })
}

// Leaflet v0.7 backwards compatibility
function off (el, types, fn, context) {
  types.split(' ').forEach(function (type) {
    L.DomEvent.off(el, type, fn, context)
  })
}
  1. Fix deprecated events mixin:
    includes: L.Mixin.Events,
    change this to:
    includes: L.Evented.prototype,
  2. Fix _addEvents and _removeEvents functions:
    There seems to be a problem with this ternary: L.Browser.touch ? 'touchstart' : 'mousedown'
    That is why I split those functions into separate eventListeners.

Old code:

_addEvents: function () {
    var range = this._range
    var map = this._map
    if (!map || !range) return
    map.on('move', this._updateClip, this)
    map.on('layeradd layerremove', this._updateLayers, this)
    on(range, getRangeEvent(range), this._updateClip, this)
    on(range, L.Browser.touch ? 'touchstart' : 'mousedown', cancelMapDrag, this)
    on(range, L.Browser.touch ? 'touchend' : 'mouseup', uncancelMapDrag, this)
  },

  _removeEvents: function () {
    var range = this._range
    var map = this._map
    if (range) {
      off(range, getRangeEvent(range), this._updateClip, this)
      off(range, L.Browser.touch ? 'touchstart' : 'mousedown', cancelMapDrag, this)
      off(range, L.Browser.touch ? 'touchend' : 'mouseup', uncancelMapDrag, this)
    }
    if (map) {
      map.off('layeradd layerremove', this._updateLayers, this)
      map.off('move', this._updateClip, this)
    }
  }

Replaced with:

_addEvents: function () {
    var range = this._range;
    var map = this._map;
    if (!map || !range) return;
    map.on("move", this._updateClip, this);
    map.on("layeradd layerremove", this._updateLayers, this);
    L.DomEvent.on(range, getRangeEvent(range), this._updateClip, this);
    L.DomEvent.on(range, "touchstart", cancelMapDrag, this);
    L.DomEvent.on(range, "touchend", uncancelMapDrag, this);
    L.DomEvent.on(range, "mousedown", cancelMapDrag, this);
    L.DomEvent.on(range, "mouseup", uncancelMapDrag, this);
  },

  _removeEvents: function () {
    var range = this._range;
    var map = this._map;
    if (range) {
      L.DomEvent.off(range, getRangeEvent(range), this._updateClip, this);
      L.DomEvent.off(range, "touchstart", cancelMapDrag, this);
      L.DomEvent.off(range, "touchend", uncancelMapDrag, this);
      L.DomEvent.off(range, "mousedown", cancelMapDrag, this);
      L.DomEvent.off(range, "mouseup", uncancelMapDrag, this);
    }
    if (map) {
      map.off("layeradd layerremove", this._updateLayers, this);
      map.off("move", this._updateClip, this);
    }
  },

I got this working with React leaflet (Leaflet v.1.8.0) and I haven't tested this solution a lot. There is probably a way to get it working so that support for v.0.7 doesn't need to be removed.

Hope this helps someone. If I catch some time, I'll make a pull request or make a new fork.

Workaround works. Thanks.

giovanniborella added a commit to geopartner/vidi that referenced this issue Aug 8, 2022
Squashed commit of the following:

commit a2b4012
Author: Martin Høgh <[email protected]>
Date:   Fri Aug 5 11:42:46 2022 +0200

    Lazy load of snapshots

commit d9d0388
Author: Martin Høgh <[email protected]>
Date:   Fri Aug 5 11:40:26 2022 +0200

    Lazy load of snapshots

commit 27b117c
Author: Martin Høgh <[email protected]>
Date:   Fri Aug 5 11:33:00 2022 +0200

    Lazy load of snapshots

commit 0dc5e8d
Author: Martin Høgh <[email protected]>
Date:   Fri Aug 5 11:28:51 2022 +0200

    Bug

commit e587924
Author: Martin Høgh <[email protected]>
Date:   Wed Aug 3 11:36:47 2022 +0200

    Docs updated

commit 1d08ec2
Author: Martin Høgh <[email protected]>
Date:   Tue Aug 2 14:01:47 2022 +0200

    2022.8.0

commit ac4d4c7
Author: Martin Høgh <[email protected]>
Date:   Tue Aug 2 13:59:51 2022 +0200

    Docs updated

commit 3660118
Author: Martin Høgh <[email protected]>
Date:   Tue Aug 2 13:35:07 2022 +0200

    vector_max_zoom is now actual max

commit 9d63a5b
Author: Martin Høgh <[email protected]>
Date:   Tue Aug 2 12:58:36 2022 +0200

    Issue regarding `featureInfoTableOnMap` and pop-up error when single feature is selected

commit 771fb9e
Author: Martin Høgh <[email protected]>
Date:   Tue Aug 2 11:24:28 2022 +0200

    digidem/leaflet-side-by-side#43

commit 7a86cd3
Author: Martin Høgh <[email protected]>
Date:   Tue Jul 5 10:39:32 2022 +0200

    Add tooltips to same pane as layer

commit ae9bc0d
Author: Martin Høgh <[email protected]>
Date:   Tue Jul 5 10:31:32 2022 +0200

    New GC2 meta setting for bind a tooltip to vector layers: `tooltip_template`

commit 826f984
Author: Martin Høgh <[email protected]>
Date:   Tue Jul 5 10:30:08 2022 +0200

    New GC2 meta setting for bind a tooltip to vector layers: `tooltip_template`

commit 538b420
Merge: 50ab6dc 1ad5ca7
Author: Martin Høgh <[email protected]>
Date:   Mon Jul 4 13:56:57 2022 +0200

    Merge branch 'minZoom_vector_layer'

commit 1ad5ca7
Author: Martin Høgh <[email protected]>
Date:   Mon Jul 4 13:56:05 2022 +0200

    New GC2 meta settings for controlling zoom level visibility for vector layers: `vector_min_zoom` and `vector_max_zoom`.

commit 50ab6dc
Author: Martin Høgh <[email protected]>
Date:   Mon Jul 4 13:47:57 2022 +0200

     For each activated layer there is now created a map pane named `[schema]-[layer]` and the layer is added to this.

commit ce38842
Author: Martin Høgh <[email protected]>
Date:   Fri Jul 1 08:59:27 2022 +0200

    Custom pane setting for vector layers

commit c024e4c
Author: Martin Høgh <[email protected]>
Date:   Thu Jun 30 15:16:32 2022 +0200

    Max/min zoom level for vector works

commit f0dc0dd
Author: Martin Høgh <[email protected]>
Date:   Thu Jun 30 12:37:37 2022 +0200

    glify added

commit f653182
Author: Martin Høgh <[email protected]>
Date:   Thu Jun 30 12:37:34 2022 +0200

    glify added

commit 531ef69
Author: Martin Høgh <[email protected]>
Date:   Thu Jun 30 12:10:08 2022 +0200

    test of removing/adding layer

commit 3b06fa1
Author: Martin Høgh <[email protected]>
Date:   Thu Jun 30 09:20:25 2022 +0200

    Unreleased

commit dc86ee7
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 29 12:11:13 2022 +0200

    Docs

commit aaf6e19
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 29 12:03:53 2022 +0200

    Docs

commit b38d577
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 29 11:46:58 2022 +0200

    Docs

commit 7a208ea
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 29 11:40:26 2022 +0200

    Docs

commit d1a8243
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 29 09:12:30 2022 +0200

    Check if layer geometry

commit 932f958
Author: Martin Høgh <[email protected]>
Date:   Tue Jun 28 12:50:40 2022 +0200

    2022.6.1

commit 41db465
Author: Martin Høgh <[email protected]>
Date:   Tue Jun 28 12:27:59 2022 +0200

    Table search is now switched off

commit 2cc04d3
Author: Martin Høgh <[email protected]>
Date:   Mon Jun 27 19:26:42 2022 +0200

    Legend moved to upper right corner in embed.tmpl

commit 6e8e07b
Author: Martin Høgh <[email protected]>
Date:   Mon Jun 27 13:29:30 2022 +0200

    Render images in vector tables

commit bfe3a1c
Author: Martin Høgh <[email protected]>
Date:   Mon Jun 27 13:08:28 2022 +0200

    Render field templates in pop-ups

commit 1021a92
Author: Martin Høgh <[email protected]>
Date:   Fri Jun 24 13:03:34 2022 +0200

    In vector tables values are now replaced with rendered mustache template if provided through GC2.

commit 33e33db
Author: Martin Høgh <[email protected]>
Date:   Thu Jun 23 14:42:12 2022 +0200

    Links in pop-ups and tables will now not be generated if value is null or empty string.

commit f2c6455
Author: Martin Høgh <[email protected]>
Date:   Thu Jun 23 14:01:23 2022 +0200

    Pop-ups are not longer opened when selecting in table.

commit ee22ed3
Author: Martin Høgh <[email protected]>
Date:   Thu Jun 23 12:45:47 2022 +0200

    Some bugs

commit f2733c9
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 22 15:23:50 2022 +0200

    Some fixes regarding pop-ups and tables. Bug regarding links in pop-ups fixed

commit e158e25
Author: Martin Høgh <[email protected]>
Date:   Mon Jun 20 13:46:29 2022 +0200

    Full translation of `coordinates` module

commit ef0cf75
Author: Martin Høgh <[email protected]>
Date:   Fri Jun 17 11:36:11 2022 +0200

    Bug

commit 54df589
Author: Martin Høgh <[email protected]>
Date:   Thu Jun 16 13:19:17 2022 +0200

    The URL parameters `var_matrikelnr` and `var_landsejerlavskode` will trigger search on the specified cadastral number using `danish` module.

commit 099f059
Author: Martin Høgh <[email protected]>
Date:   Mon Mar 7 11:12:34 2022 +0100

    Do not throw error when filter is invalid

commit dfcb0d4
Author: Martin Høgh <[email protected]>
Date:   Thu Jun 16 08:13:13 2022 +0200

    The URL parameters `var_matrikelnr` and `var_landsejerlavskode` will trigger search on the specified cadastral number using `danish` module.

commit 76485c0
Author: Martin Høgh <[email protected]>
Date:   Thu Jun 16 08:13:00 2022 +0200

    The URL parameters `var_matrikelnr` and `var_landsejerlavskode` will trigger search on the specified cadastral number using `danish` module.

commit ad05cdd
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 15 21:31:38 2022 +0200

    The URL parameters `var_matrikelnr` and `var_landsejerlavskode` will trigger search on the specified cadastral number using `danish` module.

commit 1f125b6
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 15 12:13:35 2022 +0200

    UNRELEASED

commit 0ef7223
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 15 12:13:09 2022 +0200

    2022.6.0

commit 1b83dab
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 15 12:00:43 2022 +0200

    The URL parameters `var_matrikelnr` and `var_landsejerlavskode` will trigger search on the specified cadastral number using `danish` module.

commit 596f5c4
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 15 11:21:41 2022 +0200

    Added class="loading-overlay"

commit 124a95e
Merge: 0eddb6c 1c834d4
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 15 08:48:55 2022 +0200

    Merge branch 'master' of https://github.com/mapcentia/vidi

commit 1c834d4
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 15 08:47:40 2022 +0200

    UTFgrids are now single tiled for better performance due to fewer network reqeusts. But MapCache can't "untile" raw data, so the GC2 Meta setting `cache_utf_grid` will be ignorred.

commit ded47f2
Author: Martin Høgh <[email protected]>
Date:   Tue Jun 14 14:44:52 2022 +0200

    Working

commit d3cd57d
Author: Martin Høgh <[email protected]>
Date:   Tue Jun 14 14:23:31 2022 +0200

    Working

commit b37a302
Author: Martin Høgh <[email protected]>
Date:   Fri Jun 10 13:38:55 2022 +0200

    Single tile UTF grid working

commit b1decd7
Author: Martin Høgh <[email protected]>
Date:   Fri Jun 10 13:18:31 2022 +0200

    Single tile UTF grid working

commit 215c676
Author: Martin Høgh <[email protected]>
Date:   Fri Jun 10 13:17:31 2022 +0200

    Leaflet 1.8.0

commit bd79a2f
Author: Martin Høgh <[email protected]>
Date:   Wed Jun 8 10:20:12 2022 +0200

    Init

commit a61fc35
Author: Martin Høgh <[email protected]>
Date:   Fri Jun 3 13:48:46 2022 +0200

    Upgrade to Bootstrap table 1.20

commit 40a22df
Author: Martin Høgh <[email protected]>
Date:   Fri Jun 3 13:43:52 2022 +0200

    Table search implemented

commit 4317eaa
Author: Martin Høgh <[email protected]>
Date:   Fri Jun 3 13:33:18 2022 +0200

    Table search implemented

commit 0eddb6c
Merge: 785f74e 7cfbab1
Author: Martin Høgh <[email protected]>
Date:   Mon May 30 21:48:53 2022 +0200

    Merge branch 'master' of https://github.com/mapcentia/vidi

commit 7cfbab1
Author: Martin Høgh <[email protected]>
Date:   Mon May 30 16:42:50 2022 +0200

    - If all cookies are blocked in the browser, Vidi will now still startup, but with a blank state.

commit 2290175
Author: Martin Høgh <[email protected]>
Date:   Mon May 30 13:20:05 2022 +0200

    Don't show table pop-up when crossMultiSelect is true

commit a9577bc
Author: Martin Høgh <[email protected]>
Date:   Mon May 30 10:13:01 2022 +0200

    New tag 2022.5.2

commit 4d86716
Author: Martin Høgh <[email protected]>
Date:   Mon May 30 10:11:39 2022 +0200

    Bug: Store was nullified when turning of table.

commit b4f9164
Author: Martin Høgh <[email protected]>
Date:   Fri May 27 13:45:32 2022 +0200

    Unreleased

commit a35678c
Author: Martin Høgh <[email protected]>
Date:   Fri May 27 13:16:30 2022 +0200

    `crossMultiSelect` on vector features now used `@turf/boolean-intersects` instead of comparing the bounds of features with Leafletjs.

commit bf6f5be
Author: Martin Høgh <[email protected]>
Date:   Fri May 27 09:32:26 2022 +0200

    2022.5.2

commit 3439fc3
Author: Martin Høgh <[email protected]>
Date:   Wed May 25 13:19:41 2022 +0200

    Add some auto pan padding to accordion popups, so they don't open up out the map

commit c4c1e99
Author: Martin Høgh <[email protected]>
Date:   Wed May 25 12:48:01 2022 +0200

    Set a selected style on vectors that works similar to raster query

commit 2a7e927
Author: Martin Høgh <[email protected]>
Date:   Tue May 24 13:45:41 2022 +0200

    Don't add subuser@ to uri

commit 990a627
Author: Martin Høgh <[email protected]>
Date:   Tue May 24 13:08:33 2022 +0200

    Don't add subuser@ to uri

commit bf6c4f9
Author: Martin Høgh <[email protected]>
Date:   Tue May 24 10:55:32 2022 +0200

    esr_ejendomsnummer changed to sfe_ejendomsnummer

commit b2ee4ff
Author: Martin Høgh <[email protected]>
Date:   Tue May 24 09:09:35 2022 +0200

    Extra url parameters

commit c6cd99c
Author: Martin Høgh <[email protected]>
Date:   Fri May 20 09:29:30 2022 +0200

    For later

commit 7a3cdf6
Author: Martin Høgh <[email protected]>
Date:   Wed May 18 12:03:21 2022 +0200

    Unreleased

commit 14b229c
Author: Martin Høgh <[email protected]>
Date:   Thu May 12 13:18:36 2022 +0200

    2022.5.1

commit 557b60b
Author: Martin Høgh <[email protected]>
Date:   Thu May 12 12:09:38 2022 +0200

    Copy

commit 7ab267c
Author: Martin Høgh <[email protected]>
Date:   Thu May 12 12:01:27 2022 +0200

    Layer filter ready

commit 4dc99ec
Author: Martin Høgh <[email protected]>
Date:   Thu May 12 09:31:31 2022 +0200

    Full path on ES url

commit cc66a09
Author: Martin Høgh <[email protected]>
Date:   Tue May 10 12:36:54 2022 +0200

    Working filter function

commit 0fe18a4
Author: Martin Høgh <[email protected]>
Date:   Mon May 9 13:14:33 2022 +0200

    Working filter function

commit efe96d0
Author: Martin Høgh <[email protected]>
Date:   Mon May 9 11:37:38 2022 +0200

    Test

commit dd79726
Author: Martin Høgh <[email protected]>
Date:   Mon May 9 11:22:43 2022 +0200

    Test

commit 8b04b74
Author: Martin Høgh <[email protected]>
Date:   Mon May 9 09:41:43 2022 +0200

    - A block/unblock event is added in `infoClick` module, så other modules can block feature-info clicks from happening. This is implemented in `editor, so feature-info-click is blocked while creating new features.

commit 1bd61c5
Author: Martin Høgh <[email protected]>
Date:   Fri May 6 14:03:32 2022 +0200

    - A block/unblock event is added in `infoClick` module, så other modules can block feature-info clicks from happening. This is implemented in `editor, so feature-info-click is blocked while creating new features.

commit 9d0a7c4
Author: Martin Høgh <[email protected]>
Date:   Fri May 6 13:39:34 2022 +0200

    When editing a raster tile layer the altered properties for the feature-info template is also send to the editor. So e.g. HTML tags for links and images are rendered in the editor form. Now an unaltered clone is send instead.

commit aa7acc9
Author: Martin Høgh <[email protected]>
Date:   Thu May 5 10:34:07 2022 +0200

    UNRELEASED

commit fa27710
Author: Martin Høgh <[email protected]>
Date:   Thu May 5 10:33:15 2022 +0200

    2022.5.0

commit ff13044
Author: Martin Høgh <[email protected]>
Date:   Thu May 5 10:14:09 2022 +0200

    Typo

commit 27ba8a9
Author: Martin Høgh <[email protected]>
Date:   Wed May 4 14:57:17 2022 +0200

    conflictSearch now has a `stateless` option, which can be set in both build and run-time config. In stateless mode the state of the module will not be kept. Default `false`.

commit 0ede34d
Author: Martin Høgh <[email protected]>
Date:   Wed May 4 14:34:42 2022 +0200

    Better progress counter

commit 48eb53c
Author: Martin Høgh <[email protected]>
Date:   Wed May 4 14:34:08 2022 +0200

    Can now ignore geometry field without causing a error

commit 7e40a76
Author: Martin Høgh <[email protected]>
Date:   Tue May 3 14:43:02 2022 +0200

    Set opacity from state when adding layer

commit f11308c
Author: Martin Høgh <[email protected]>
Date:   Tue May 3 14:26:00 2022 +0200

    Set opacity from state when adding layer

commit dd45195
Author: Martin Høgh <[email protected]>
Date:   Mon May 2 13:41:07 2022 +0200

    Set opacity from state when refreshing

commit ddeed67
Author: Martin Høgh <[email protected]>
Date:   Mon May 2 13:59:28 2022 +0200

    favicon with absolute path

commit 22db103
Author: Martin Høgh <[email protected]>
Date:   Thu Apr 21 13:54:36 2022 +0200

    Added new packages

commit b0adf11
Author: Martin Høgh <[email protected]>
Date:   Thu Apr 21 12:14:22 2022 +0200

    Added new packages

commit 70e50f8
Author: Martin Høgh <[email protected]>
Date:   Wed Apr 20 12:50:57 2022 +0200

    Finish async

commit d118d9e
Author: Martin Høgh <[email protected]>
Date:   Wed Apr 20 12:31:42 2022 +0200

    Finish async

commit 3c4dd57
Merge: 1afd9f1 e84c46a
Author: Martin Høgh <[email protected]>
Date:   Wed Apr 20 12:25:56 2022 +0200

    Merge branch 'master' into async_conflict

commit 1afd9f1
Author: Martin Høgh <[email protected]>
Date:   Wed Apr 20 12:25:46 2022 +0200

    Finish async

commit e84c46a
Author: Martin Høgh <[email protected]>
Date:   Fri Apr 8 12:24:09 2022 +0200

    Added otp doc

commit 709daec
Author: Martin Høgh <[email protected]>
Date:   Fri Apr 8 12:15:40 2022 +0200

    Added otp doc

commit d9d5ec7
Author: Martin Høgh <[email protected]>
Date:   Fri Apr 8 09:40:42 2022 +0200

    - Now uses sfe_ejendomsnummer instead of esr_ejendomsnummer in search of 'adresser' and 'matrikel'.

commit ec8b0c8
Author: Martin Høgh <[email protected]>
Date:   Fri Apr 1 14:27:34 2022 +0200

    Async started

commit 215ab5b
Author: Martin Høgh <[email protected]>
Date:   Thu Mar 24 21:16:48 2022 +0100

    2022.3.3

commit 36ade03
Author: Martin Høgh <[email protected]>
Date:   Thu Mar 24 11:39:23 2022 +0100

    - The Leaflet method `toGeoJSON` rounds of coordinates with 6 decimals by default. But this may result in up to 10 cm on the map (tested at about 57 degrees north). This makes the editor and snapping very unprecise. So all `toGeoJSON` calls are now done with a precision argument of 14 through the app.

commit d24e60f
Author: Martin Høgh <[email protected]>
Date:   Thu Mar 24 10:05:27 2022 +0100

    Bug after setting default config values

commit f44e73f
Author: Martin Høgh <[email protected]>
Date:   Sun Mar 20 17:44:10 2022 +0100

    Some caching issues

commit 1ad5724
Author: Martin Høgh <[email protected]>
Date:   Fri Mar 18 09:20:52 2022 +0100

    2022.3.2

commit 798ffdb
Author: Martin Høgh <[email protected]>
Date:   Thu Mar 17 15:34:56 2022 +0100

    Some clean up

commit ac99a21
Author: Martin Høgh <[email protected]>
Date:   Thu Mar 17 12:50:07 2022 +0100

    Bug!

commit 85cb4c5
Author: Martin Høgh <[email protected]>
Date:   Thu Mar 17 12:35:50 2022 +0100

    Upgrade

commit 62cebaa
Author: Martin Høgh <[email protected]>
Date:   Tue Mar 15 14:30:59 2022 +0100

    Unreleased

commit 18d47a8
Author: Martin Høgh <[email protected]>
Date:   Tue Mar 15 14:28:51 2022 +0100

    2022.3.1

commit ad05eba
Author: Martin Høgh <[email protected]>
Date:   Tue Mar 15 14:08:54 2022 +0100

    2022.3.1

commit ee0523a
Author: Martin Høgh <[email protected]>
Date:   Tue Mar 15 14:03:25 2022 +0100

    2022.3.1

commit c460f56
Author: Martin Høgh <[email protected]>
Date:   Tue Mar 15 13:59:56 2022 +0100

    Config settings for table position and width and height

commit 4dd028e
Author: Martin Høgh <[email protected]>
Date:   Tue Mar 15 13:58:22 2022 +0100

    Config settings for table position and width and height

commit 3212249
Author: Martin Høgh <[email protected]>
Date:   Tue Mar 15 13:04:29 2022 +0100

    Config settings for table position and width and height

commit bcebcb6
Author: Martin Høgh <[email protected]>
Date:   Mon Mar 14 10:46:05 2022 +0100

    Vector tables can now be placed to the right and at the bottom. Table are removed when layer is switched off. Only one table at a time. Some bugs regarding table and dynamic load.

commit 1abbbfd
Author: Martin Høgh <[email protected]>
Date:   Fri Mar 11 19:23:20 2022 +0100

    Reset map size when panel is closed

commit ad78387
Author: Martin Høgh <[email protected]>
Date:   Fri Mar 11 11:24:23 2022 +0100

    Vector layer table is now removed when layer is switched off. The map pane is no longer pushed off canvas, when table is displayed.

commit 77d0044
Author: Martin Høgh <[email protected]>
Date:   Thu Mar 10 14:21:02 2022 +0100

    Tracking cookie will now be set as `secure=true` and `sameSite=none` if env var NODE_ENV is set to 'production'. This will fix issues with embeding Vidi and setting the cookie.

commit 8d12c6b
Author: Martin Høgh <[email protected]>
Date:   Thu Mar 10 13:47:12 2022 +0100

    A new option in embed.js: `data-vidi-no-tracking`, which will disable the Vidi tracking cookie used for advanced functions like state-snapshots and printing.

commit 4affe39
Author: Martin Høgh <[email protected]>
Date:   Wed Mar 9 09:42:27 2022 +0100

    Added GC2 Meta option for tiled raster layer: `tiled`

commit fb9649e
Author: Martin Høgh <[email protected]>
Date:   Tue Mar 8 14:24:59 2022 +0100

    Bug

commit 166d222
Author: Martin Høgh <[email protected]>
Date:   Fri Mar 4 15:58:43 2022 +0100

    Unreleased

commit 0bd11b0
Author: Martin Høgh <[email protected]>
Date:   Fri Mar 4 15:58:13 2022 +0100

    2022.3.0

commit 0a65b8f
Author: Martin Høgh <[email protected]>
Date:   Fri Mar 4 15:53:46 2022 +0100

    - Added config setting for auto panning map when pop-up's opens, so they don't stay outside map: `autoPanPopup: false|true`
    - Pop-ups on vector layers will use a simple pop-ups when `crossMultiSelect` is `false` instead of the accordion. This make pop-up behaviours similar on tile and vector layers.
    - Some issues regarding pop-up behaviours when `crossMultiSelect` is `true` and editor is enabled: `crossMultiSelect` will be set to `false` when editor is enabled.
    - Config defaults are now handle one place in the source and all settings have defaults. No longer need for testing if a setting is undefined.

commit cc975a5
Author: Martin Høgh <[email protected]>
Date:   Fri Mar 4 15:06:56 2022 +0100

    - Added config setting for auto panning map when pop-up's opens, so they don't stay outside map: `autoPanPopup: false|true`
    - Pop-ups on vector layers will use a simple pop-ups when `crossMultiSelect` is `false` instead of the accordion. This make pop-up behaviours similar on tile and vector layers.
    - Some issues regarding pop-up behaviours when `crossMultiSelect` is `true` and editor is enabled: `crossMultiSelect` will be set to `false` when editor is enabled.
    - Config defaults are now handle one place in the source and all settings have defaults. No longer need for testing if a setting is undefined.

commit 5ffc835
Author: Martin Høgh <[email protected]>
Date:   Tue Mar 1 14:09:48 2022 +0100

    Limit raised to 10000

commit b522e42
Author: Martin Høgh <[email protected]>
Date:   Fri Feb 18 23:28:26 2022 +0100

    Unreleased

commit 871f367
Author: Martin Høgh <[email protected]>
Date:   Fri Feb 18 23:16:28 2022 +0100

    Unreleased

commit a150119
Author: Martin Høgh <[email protected]>
Date:   Fri Feb 18 23:15:39 2022 +0100

    2022.2.2

commit 5344428
Author: Martin Høgh <[email protected]>
Date:   Fri Feb 18 23:12:41 2022 +0100

    Stop counting if max is reached

commit e8e1d27
Author: Martin Høgh <[email protected]>
Date:   Fri Feb 18 15:24:04 2022 +0100

    Better support for special characters and upper case in layer names. Fixes a UTF8 error in WMS requests and quotes schema/relation names in feature info requests.

commit e4a7e87
Author: Martin Høgh <[email protected]>
Date:   Fri Feb 18 09:57:35 2022 +0100

    Better support for special characters and upper case in layer names. Fixes a UTF8 error in WMS requests and quotes schema/relation names in feature info requests.

commit b63b523
Author: Martin Høgh <[email protected]>
Date:   Thu Feb 17 21:26:57 2022 +0100

    Ajustment of print PNG sizes

commit 785f74e
Merge: 38b5017 008dcd0
Author: Martin Høgh <[email protected]>
Date:   Fri Feb 11 10:19:44 2022 +0100

    Merge branch 'master' of https://github.com/mapcentia/vidi

commit 72c1cca
Author: Martin Høgh <[email protected]>
Date:   Thu Feb 3 21:21:59 2022 +0100

    UNRELEASED

commit 008dcd0
Author: Martin Høgh <[email protected]>
Date:   Thu Feb 3 21:20:53 2022 +0100

    2022.2.1

commit c83a681
Author: Martin Høgh <[email protected]>
Date:   Thu Feb 3 21:10:13 2022 +0100

    Use UTM when projecting or the diversion will be too big

commit b13af23
Author: Martin Høgh <[email protected]>
Date:   Thu Feb 3 09:27:52 2022 +0100

    UNRELEASED

commit bf1ad61
Author: Martin Høgh <[email protected]>
Date:   Thu Feb 3 09:27:14 2022 +0100

    2022.2.0

commit c1f207e
Author: Martin Høgh <[email protected]>
Date:   Thu Feb 3 09:26:33 2022 +0100

    2022.2.0

commit 624914f
Author: Martin Høgh <[email protected]>
Date:   Thu Feb 3 09:21:27 2022 +0100

    Fix for buggy print recreation from snapshot

commit c99bcdf
Author: Martin Høgh <[email protected]>
Date:   Thu Feb 3 09:15:34 2022 +0100

    Using 3857 instead of 900913

commit 7b8fb0c
Author: Martin Høgh <[email protected]>
Date:   Thu Feb 3 09:15:26 2022 +0100

    Using 3857 instead of 900913

commit 546ec39
Author: Martin Høgh <[email protected]>
Date:   Wed Feb 2 20:35:35 2022 +0100

    Fix for buggy print recreation from snapshot

commit 38b5017
Merge: ad4cb8f 04a0902
Author: Martin Høgh <[email protected]>
Date:   Tue Feb 1 07:48:42 2022 +0100

    Merge branch 'master' of https://github.com/mapcentia/vidi

commit 04a0902
Author: Martin Høgh <[email protected]>
Date:   Tue Jan 25 12:02:55 2022 +0100

    Df docs

commit 06daafa
Author: Martin Høgh <[email protected]>
Date:   Fri Jan 21 11:21:05 2022 +0100

    Typo

commit 3b2ecad
Author: Martin Høgh <[email protected]>
Date:   Thu Jan 13 14:14:31 2022 +0100

    Added package

commit bb549c8
Author: Martin Høgh <[email protected]>
Date:   Wed Dec 29 13:40:34 2021 +0100

    The `df` extensiion is changed, so it can use both Dataforsyningen and Datafordeler

commit ad4cb8f
Merge: 9307ed9 a06e6cd
Author: Martin Høgh <[email protected]>
Date:   Mon Dec 20 16:13:16 2021 +0100

    Merge branch 'master' of https://github.com/mapcentia/vidi

commit a06e6cd
Author: Martin Høgh <[email protected]>
Date:   Mon Dec 20 16:09:07 2021 +0100

    Field ignore setting from GC2 will now exclude the field from being queried in sqlQuery module (feature info).

commit 9801018
Author: Martin Høgh <[email protected]>
Date:   Tue Dec 14 13:50:24 2021 +0100

    Upgrade of react-jsonschema-form to @rjsf/core

commit 9307ed9
Author: Martin Høgh <[email protected]>
Date:   Wed Oct 27 15:57:12 2021 +0200

    Revert "Adjustments"

    This reverts commit 21d020c

commit 21d020c
Author: Martin Høgh <[email protected]>
Date:   Wed Oct 27 15:52:53 2021 +0200

    Adjustments
@Ukonhattu
Copy link
Collaborator

I have updated the deprecated events mixin and this should now work with leaflet 1.8 and up. #45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants