Fix split map position in iframe

This commit is contained in:
Dave Conway-Jones 2022-12-16 18:28:17 +00:00
parent 23a0aa12e1
commit 9667df12f3
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
4 changed files with 240 additions and 235 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap ### Change Log for Node-RED Worldmap
- v2.32.2 - Fix map split in iframe position
- v2.32.1 - Let command.heatmap replace complete heatmap array. - v2.32.1 - Let command.heatmap replace complete heatmap array.
- v2.32.0 - Change || to nullish operator ?? to fix numerous dodgy assignments. Issue #219 - v2.32.0 - Change || to nullish operator ?? to fix numerous dodgy assignments. Issue #219
Delete marker now also removes from heatmap layer. Issue #218 Delete marker now also removes from heatmap layer. Issue #218

View File

@ -11,6 +11,7 @@ map web page for plotting "things" on.
### Updates ### Updates
- v2.32.2 - Fix map split in iframe position
- v2.32.1 - Let command.map.heatmap replace complete heatmap array. - v2.32.1 - Let command.map.heatmap replace complete heatmap array.
- v2.32.0 - Change || to nullish operator ?? to fix numerous dodgy assignments. Issue #219 - v2.32.0 - Change || to nullish operator ?? to fix numerous dodgy assignments. Issue #219
Delete marker now also removes from heatmap layer. Issue #218 Delete marker now also removes from heatmap layer. Issue #218

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-contrib-web-worldmap", "name": "node-red-contrib-web-worldmap",
"version": "2.32.1", "version": "2.32.2",
"description": "A Node-RED node to provide a web page of a world map for plotting things on.", "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
"dependencies": { "dependencies": {
"@turf/bezier-spline": "~6.5.0", "@turf/bezier-spline": "~6.5.0",

View File

@ -1,4 +1,5 @@
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ (function () { function r(e, n, t) { function o(i, f) { if (!n[i]) { if (!e[i]) { var c = "function" == typeof require && require; if (!f && c) return c(i, !0); if (u) return u(i, !0); var a = new Error("Cannot find module '" + i + "'"); throw a.code = "MODULE_NOT_FOUND", a } var p = n[i] = { exports: {} }; e[i][0].call(p.exports, function (r) { var n = e[i][1][r]; return o(n || r) }, p, p.exports, r, e, n, t) } return n[i].exports } for (var u = "function" == typeof require && require, i = 0; i < t.length; i++)o(t[i]); return o } return r })()({
1: [function (require, module, exports) {
(function (global) { (function (global) {
var L = (typeof window !== "undefined" ? window['L'] : typeof global !== "undefined" ? global['L'] : null) var L = (typeof window !== "undefined" ? window['L'] : typeof global !== "undefined" ? global['L'] : null)
require('./layout.css') require('./layout.css')
@ -129,6 +130,7 @@ L.Control.SideBySide = L.Control.extend({
var map = this._map var map = this._map
var nw = map.containerPointToLayerPoint([0, 0]) var nw = map.containerPointToLayerPoint([0, 0])
var se = map.containerPointToLayerPoint(map.getSize()) var se = map.containerPointToLayerPoint(map.getSize())
se.y += 40;
var clipX = nw.x + this.getPosition() var clipX = nw.x + this.getPosition()
var dividerX = this.getPosition() var dividerX = this.getPosition()
@ -272,4 +274,5 @@ var css = ".leaflet-sbs-range {\r\n -webkit-appearance: none;\r\n display:
inject(css, undefined, '_1tlt668'); inject(css, undefined, '_1tlt668');
module.exports = css; module.exports = css;
},{"./node_modules/cssify":3}]},{},[1]); }, { "./node_modules/cssify": 3 }]
}, {}, [1]);