vue-geojson-view-ts 1.3.18 → 1.3.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-geojson-view-ts",
3
- "version": "1.3.18",
3
+ "version": "1.3.19",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -439,6 +439,7 @@ export default defineComponent({
439
439
  const renderGeojson = this.renderGeojson;
440
440
  if (renderGeojson && renderGeojson.length) {
441
441
  renderGeojson.forEach((item: any) => {
442
+ const self = this;
442
443
  if (item.type === "FeatureCollection") {
443
444
  item.features.forEach((feature: any) => {
444
445
  if (
@@ -446,10 +447,8 @@ export default defineComponent({
446
447
  feature.geometry.type === "MultiPolygon" ||
447
448
  feature.geometry.type === "LineString" ||
448
449
  feature.geometry.type === "MultiLineString" ||
449
- feature.geometry.type === "Point" ||
450
- feature.geometry.type === "MultiPoint"
450
+ feature.geometry.type === "Point"
451
451
  ) {
452
- const self = this;
453
452
  L.geoJson(feature, {
454
453
  pointToLayer: this.getPointToLayer.bind(this),
455
454
  onEachFeature: function (feature, layer) {
@@ -478,10 +477,8 @@ export default defineComponent({
478
477
  item.geometry.type === "MultiPolygon" ||
479
478
  item.geometry.type === "LineString" ||
480
479
  item.geometry.type === "MultiLineString" ||
481
- item.geometry.type === "Point" ||
482
- item.geometry.type === "MultiPoint"
480
+ item.geometry.type === "Point"
483
481
  ) {
484
- const self = this;
485
482
  L.geoJson(item, {
486
483
  pointToLayer: this.getPointToLayer.bind(this),
487
484
  onEachFeature: function (feature, layer) {