@kizmann/pico-js 0.3.34 → 0.3.35
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/library/map.js +9 -1
package/package.json
CHANGED
package/src/library/map.js
CHANGED
@@ -358,8 +358,12 @@ export default class Map
|
|
358
358
|
|
359
359
|
let item = { key };
|
360
360
|
|
361
|
+
if ( ! Obj.has(options, 'visible') ) {
|
362
|
+
options.visible = true;
|
363
|
+
}
|
364
|
+
|
361
365
|
item.extras = Obj.except(options, [
|
362
|
-
'map', 'position', 'lat', 'lng', 'html', 'style'
|
366
|
+
'map', 'position', 'lat', 'lng', 'html', 'style', 'visible'
|
363
367
|
]);
|
364
368
|
|
365
369
|
if ( ! Obj.has(options, 'map') ) {
|
@@ -376,6 +380,10 @@ export default class Map
|
|
376
380
|
|
377
381
|
item.marker = new global.google.maps.Marker(options);
|
378
382
|
|
383
|
+
if ( !options.visible ) {
|
384
|
+
item.marker.setVisible(false);
|
385
|
+
}
|
386
|
+
|
379
387
|
Obj.set(this.markers, key, item);
|
380
388
|
|
381
389
|
this.clusterMarkers(this.clusterOptions, null, false);
|