(js) Add `icon` property for `map.addKmlOverlay()`
MODIFY
www/Map.js
www/Map.js
@@ -992,6 +992,9 @@ Map.prototype.addKmlOverlay = function(kmlOverlayOptions, callback) {
visible: false
}));
}
+ if ('icon' in kmlOverlayOptions) {
+ self.get('invisible_dot').setIcon(kmlOverlayOptions.icon);
+ }
var resolver = function(resolve, reject) {
@@ -1016,7 +1019,6 @@ Map.prototype.addKmlOverlay = function(kmlOverlayOptions, callback) {
};
-
//-------------
// Ground overlay
//-------------

(js) Add `icon` property for `map.addKmlOverlay()`