@vtx/map 1.1.33 → 1.1.35
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/VtxMap/AMap/AMap.js +9 -13
- package/lib/VtxMap/AMap/AMap.js.map +1 -1
- package/lib/VtxMap/BMap/Map.js +7 -1
- package/lib/VtxMap/BMap/Map.js.map +1 -1
- package/lib/VtxMap/TMap/TMap.js +6 -0
- package/lib/VtxMap/TMap/TMap.js.map +1 -1
- package/lib/default.js +3 -2
- package/lib/default.js.map +1 -1
- package/lib/icon_font.js +49 -0
- package/lib/icon_font.js.map +1 -0
- package/package.json +1 -1
package/lib/VtxMap/TMap/TMap.js
CHANGED
|
@@ -1884,6 +1884,12 @@ var TMap = /*#__PURE__*/function (_React$Component) {
|
|
|
1884
1884
|
infowindow.setMinWidth(cg.width);
|
|
1885
1885
|
infowindow.setMaxHeight(cg.height);
|
|
1886
1886
|
|
|
1887
|
+
if (d.onClose instanceof Function) {
|
|
1888
|
+
infowindow.addEventListener("clickclose", function (e) {
|
|
1889
|
+
d.onClose(e);
|
|
1890
|
+
});
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1887
1893
|
if (d.lat && d.lng && d.content) {
|
|
1888
1894
|
(0, _reactDom.render)(d.content, sContent);
|
|
1889
1895
|
infowindow.setContent(sContent);
|