@corpsmap/corpsmap 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/dev.js CHANGED
@@ -65287,9 +65287,9 @@ function getXyzSource(options) {
65287
65287
  maxZoom: options.maxzoom,
65288
65288
  minZoom: options.minzoom,
65289
65289
  url: url,
65290
- crossOrigin: isCrossOrigin(options.url),
65291
- // CWBI-13636 Prevent horizontal wrapping.
65292
- wrapX: false
65290
+ crossOrigin: isCrossOrigin(options.url) // CWBI-13636 Prevent horizontal wrapping. Uncomment to limit
65291
+ // wrapX: false,
65292
+
65293
65293
  });
65294
65294
  }
65295
65295
 
@@ -65383,8 +65383,8 @@ function getEsriVectorSource(options) {
65383
65383
  }
65384
65384
 
65385
65385
  function getTileLayer(options, source) {
65386
- // CWBI-13636 Prevent horizontal wrapping.
65387
- source.wrapX = false;
65386
+ // CWBI-13636 Prevent horizontal wrapping. Uncomment to limit
65387
+ // source.wrapX = false;
65388
65388
  return new TileLayer({
65389
65389
  source: source,
65390
65390
  visible: options.visible,
@@ -65396,8 +65396,8 @@ function getTileLayer(options, source) {
65396
65396
  }
65397
65397
 
65398
65398
  function getImageLayer(options, source) {
65399
- // CWBI-13636 Prevent horizontal wrapping.
65400
- source.wrapX = false;
65399
+ // CWBI-13636 Prevent horizontal wrapping. Uncomment to limit
65400
+ // source.wrapX = false;
65401
65401
  return new ImageLayer({
65402
65402
  source: source,
65403
65403
  visible: options.visible,
@@ -79054,9 +79054,9 @@ var createOlMapBundle = (function (opts) {
79054
79054
  var dispatch = _ref2.dispatch,
79055
79055
  store = _ref2.store;
79056
79056
  var geoProjection = store.selectMapGeoProjection();
79057
- var webProjection = store.selectMapWebProjection(); // CWBI-13636 Limit Map Extent
79057
+ var webProjection = store.selectMapWebProjection(); // CWBI-13636 Limit Map Extent uncomment to limit
79058
+ // const extent = transformExtent([-180, -85, 180, 85], geoProjection, webProjection)
79058
79059
 
79059
- var extent = transformExtent([-180, -85, 180, 85], geoProjection, webProjection);
79060
79060
  var center = opts.hasOwnProperty("center") ? opts.center : store.selectMapCenter();
79061
79061
  var zoom = opts.hasOwnProperty("zoom") ? opts.zoom : store.selectMapZoom();
79062
79062
  var rotation = opts.hasOwnProperty("rotation") ? opts.rotation : store.selectMapRotation();
@@ -79068,8 +79068,9 @@ var createOlMapBundle = (function (opts) {
79068
79068
  zoom: zoom,
79069
79069
  rotation: rotation,
79070
79070
  minZoom: minZoom,
79071
- maxZoom: maxZoom,
79072
- extent: extent
79071
+ maxZoom: maxZoom // CWBI-13636 Limit Map Extent uncomment to limit
79072
+ // extent: extent,
79073
+
79073
79074
  });
79074
79075
  var map = new Map$3({
79075
79076
  controls: [new ScaleLine({
@@ -106484,7 +106485,7 @@ var config = {
106484
106485
  };
106485
106486
 
106486
106487
  var name = "@corpsmap/corpsmap";
106487
- var version$1 = "3.1.1";
106488
+ var version$1 = "3.1.2";
106488
106489
  var description = "CorpsMap as React Components";
106489
106490
  var main = "index.js";
106490
106491
  var scripts = {
package/lib/prod.js CHANGED
@@ -65201,9 +65201,9 @@ function getXyzSource(options) {
65201
65201
  maxZoom: options.maxzoom,
65202
65202
  minZoom: options.minzoom,
65203
65203
  url: url,
65204
- crossOrigin: isCrossOrigin(options.url),
65205
- // CWBI-13636 Prevent horizontal wrapping.
65206
- wrapX: false
65204
+ crossOrigin: isCrossOrigin(options.url) // CWBI-13636 Prevent horizontal wrapping. Uncomment to limit
65205
+ // wrapX: false,
65206
+
65207
65207
  });
65208
65208
  }
65209
65209
 
@@ -65297,8 +65297,8 @@ function getEsriVectorSource(options) {
65297
65297
  }
65298
65298
 
65299
65299
  function getTileLayer(options, source) {
65300
- // CWBI-13636 Prevent horizontal wrapping.
65301
- source.wrapX = false;
65300
+ // CWBI-13636 Prevent horizontal wrapping. Uncomment to limit
65301
+ // source.wrapX = false;
65302
65302
  return new TileLayer({
65303
65303
  source: source,
65304
65304
  visible: options.visible,
@@ -65310,8 +65310,8 @@ function getTileLayer(options, source) {
65310
65310
  }
65311
65311
 
65312
65312
  function getImageLayer(options, source) {
65313
- // CWBI-13636 Prevent horizontal wrapping.
65314
- source.wrapX = false;
65313
+ // CWBI-13636 Prevent horizontal wrapping. Uncomment to limit
65314
+ // source.wrapX = false;
65315
65315
  return new ImageLayer({
65316
65316
  source: source,
65317
65317
  visible: options.visible,
@@ -78968,9 +78968,9 @@ var createOlMapBundle = (function (opts) {
78968
78968
  var dispatch = _ref2.dispatch,
78969
78969
  store = _ref2.store;
78970
78970
  var geoProjection = store.selectMapGeoProjection();
78971
- var webProjection = store.selectMapWebProjection(); // CWBI-13636 Limit Map Extent
78971
+ var webProjection = store.selectMapWebProjection(); // CWBI-13636 Limit Map Extent uncomment to limit
78972
+ // const extent = transformExtent([-180, -85, 180, 85], geoProjection, webProjection)
78972
78973
 
78973
- var extent = transformExtent([-180, -85, 180, 85], geoProjection, webProjection);
78974
78974
  var center = opts.hasOwnProperty("center") ? opts.center : store.selectMapCenter();
78975
78975
  var zoom = opts.hasOwnProperty("zoom") ? opts.zoom : store.selectMapZoom();
78976
78976
  var rotation = opts.hasOwnProperty("rotation") ? opts.rotation : store.selectMapRotation();
@@ -78982,8 +78982,9 @@ var createOlMapBundle = (function (opts) {
78982
78982
  zoom: zoom,
78983
78983
  rotation: rotation,
78984
78984
  minZoom: minZoom,
78985
- maxZoom: maxZoom,
78986
- extent: extent
78985
+ maxZoom: maxZoom // CWBI-13636 Limit Map Extent uncomment to limit
78986
+ // extent: extent,
78987
+
78987
78988
  });
78988
78989
  var map = new Map$3({
78989
78990
  controls: [new ScaleLine({
@@ -106398,7 +106399,7 @@ var config = {
106398
106399
  };
106399
106400
 
106400
106401
  var name = "@corpsmap/corpsmap";
106401
- var version$1 = "3.1.1";
106402
+ var version$1 = "3.1.2";
106402
106403
  var description = "CorpsMap as React Components";
106403
106404
  var main = "index.js";
106404
106405
  var scripts = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corpsmap/corpsmap",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "CorpsMap as React Components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -63,8 +63,8 @@ export default (opts) => {
63
63
  doMapInitialize: (el, opts) => ({ dispatch, store }) => {
64
64
  const geoProjection = store.selectMapGeoProjection();
65
65
  const webProjection = store.selectMapWebProjection();
66
- // CWBI-13636 Limit Map Extent
67
- const extent = transformExtent([-180, -85, 180, 85], geoProjection, webProjection)
66
+ // CWBI-13636 Limit Map Extent uncomment to limit
67
+ // const extent = transformExtent([-180, -85, 180, 85], geoProjection, webProjection)
68
68
  const center = opts.hasOwnProperty("center")
69
69
  ? opts.center
70
70
  : store.selectMapCenter();
@@ -89,7 +89,8 @@ export default (opts) => {
89
89
  rotation: rotation,
90
90
  minZoom: minZoom,
91
91
  maxZoom: maxZoom,
92
- extent: extent,
92
+ // CWBI-13636 Limit Map Extent uncomment to limit
93
+ // extent: extent,
93
94
  });
94
95
 
95
96
  const map = new olMap({
@@ -70,8 +70,8 @@ function getXyzSource(options) {
70
70
  minZoom: options.minzoom,
71
71
  url: url,
72
72
  crossOrigin: isCrossOrigin(options.url),
73
- // CWBI-13636 Prevent horizontal wrapping.
74
- wrapX: false,
73
+ // CWBI-13636 Prevent horizontal wrapping. Uncomment to limit
74
+ // wrapX: false,
75
75
  });
76
76
  }
77
77
 
@@ -168,8 +168,8 @@ function getEsriVectorSource(options) {
168
168
  }
169
169
 
170
170
  function getTileLayer(options, source) {
171
- // CWBI-13636 Prevent horizontal wrapping.
172
- source.wrapX = false;
171
+ // CWBI-13636 Prevent horizontal wrapping. Uncomment to limit
172
+ // source.wrapX = false;
173
173
  return new Tile({
174
174
  source: source,
175
175
  visible: options.visible,
@@ -181,8 +181,8 @@ function getTileLayer(options, source) {
181
181
  }
182
182
 
183
183
  function getImageLayer(options, source) {
184
- // CWBI-13636 Prevent horizontal wrapping.
185
- source.wrapX = false;
184
+ // CWBI-13636 Prevent horizontal wrapping. Uncomment to limit
185
+ // source.wrapX = false;
186
186
  return new Image({
187
187
  source: source,
188
188
  visible: options.visible,