Business intelligence made simple
Updated Mapkick.js to 0.2.2 [skip ci]
Andrew Kane3e7098a01ca7
diff --git a/app/assets/javascripts/blazer/mapkick.bundle.js b/app/assets/javascripts/blazer/mapkick.bundle.jsindex a06cbba9..d9b2d9be 100644--- a/app/assets/javascripts/blazer/mapkick.bundle.js+++ b/app/assets/javascripts/blazer/mapkick.bundle.js@@ -1,7 +1,7 @@/** This bundle includes:*- * Mapkick.js v0.2.1+ * Mapkick.js v0.2.2* https://github.com/ankane/mapkick.js* MIT License*@@ -262,7 +262,7 @@function createMarkerImage(library, color) {// set height to center vertically- var height = 71;+ var height = 41;var width = 27;var scale = 2;@@ -450,6 +450,8 @@properties.icon = options.defaultIcon || "mapkick";}properties.mapkickIconSize = properties.icon === "mapkick" ? 0.5 : 1;+ properties.mapkickIconAnchor = properties.icon === "mapkick" ? "bottom" : "center";+ properties.mapkickIconOffset = properties.icon === "mapkick" ? [0, 10] : [0, 0];geojson.features.push({type: "Feature",@@ -515,6 +517,22 @@// use a symbol layer for markers for performance// https://docs.mapbox.com/help/getting-started/add-markers/#approach-1-adding-markers-inside-a-map+ // use separate layers to prevent labels from overlapping markers+ map.addLayer({+ id: (name + "-text"),+ source: name,+ type: "symbol",+ layout: {+ "text-field": "{label}",+ "text-size": 11,+ "text-anchor": "top",+ "text-offset": [0, 1]+ },+ paint: {+ "text-halo-color": "rgba(255, 255, 255, 1)",+ "text-halo-width": 1+ }+ });map.addLayer({id: name,source: name,@@ -523,11 +541,8 @@"icon-image": "{icon}-15","icon-allow-overlap": true,"icon-size": {type: "identity", property: "mapkickIconSize"},- "text-field": "{label}",- "text-size": 11,- "text-anchor": "top",- "text-offset": [0, 1],- "text-allow-overlap": true+ "icon-anchor": {type: "identity", property: "mapkickIconAnchor"},+ "icon-offset": {type: "identity", property: "mapkickIconOffset"}}});diff --git a/licenses/LICENSE-mapkick-bundle.txt b/licenses/LICENSE-mapkick-bundle.txtindex 750e2349..dbafa8e4 100644--- a/licenses/LICENSE-mapkick-bundle.txt+++ b/licenses/LICENSE-mapkick-bundle.txt@@ -1,5 +1,5 @@================================================================================-Mapkick.js 0.2.1+Mapkick.js 0.2.2================================================================================Copyright (c) 2017-2023 Andrew Kane