@vtx/map 1.1.9 → 1.1.12
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 +17 -18
- package/lib/VtxMap/AMap/AMap.js.map +1 -1
- package/lib/VtxMap/OlMap/Map.css +43 -0
- package/lib/VtxMap/OlMap/Map.js +160 -17
- package/lib/VtxMap/OlMap/Map.js.map +1 -1
- package/lib/VtxMap/OlMap/Map.less +43 -0
- package/lib/VtxMap/images/defaultMarker.png +0 -0
- package/lib/VtxMap/images/defaultMarker_selected.png +0 -0
- package/lib/VtxSearchMap/VtxSearchMap.js +4 -2
- package/lib/VtxSearchMap/VtxSearchMap.js.map +1 -1
- package/package.json +1 -1
package/lib/VtxMap/AMap/AMap.js
CHANGED
|
@@ -1410,15 +1410,15 @@ var VortexAMap = /*#__PURE__*/function (_React$Component) {
|
|
|
1410
1410
|
markerOption.content = item.markerContent;
|
|
1411
1411
|
} else {
|
|
1412
1412
|
if (item.url) {
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
} else
|
|
1420
|
-
|
|
1421
|
-
}
|
|
1413
|
+
// 解决自定义的图标设置图片大小无效
|
|
1414
|
+
// if(item.url.indexOf('http://') > -1 || item.url.indexOf('https://') > -1){
|
|
1415
|
+
markerOption.icon = new AMap.Icon({
|
|
1416
|
+
size: new AMap.Size(cg.width, cg.height),
|
|
1417
|
+
image: item.url,
|
|
1418
|
+
imageSize: new AMap.Size(cg.width, cg.height)
|
|
1419
|
+
}); // }else{
|
|
1420
|
+
// markerOption.icon = item.url;
|
|
1421
|
+
// }
|
|
1422
1422
|
}
|
|
1423
1423
|
} //是否展示label
|
|
1424
1424
|
|
|
@@ -1564,15 +1564,14 @@ var VortexAMap = /*#__PURE__*/function (_React$Component) {
|
|
|
1564
1564
|
gc.setIcon(item.urlleft);
|
|
1565
1565
|
} else {
|
|
1566
1566
|
if (item.url) {
|
|
1567
|
-
if
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
}
|
|
1567
|
+
// if(item.url.indexOf('http://') > -1 || item.url.indexOf('https://') > -1){
|
|
1568
|
+
gc.setIcon(new AMap.Icon({
|
|
1569
|
+
size: new AMap.Size(cg.width, cg.height),
|
|
1570
|
+
image: item.url,
|
|
1571
|
+
imageSize: new AMap.Size(cg.width, cg.height)
|
|
1572
|
+
})); // }else{
|
|
1573
|
+
// gc.setIcon(item.url);
|
|
1574
|
+
// }
|
|
1576
1575
|
}
|
|
1577
1576
|
}
|
|
1578
1577
|
}
|