1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | interface ClusterIconStyle {
|
16 |
|
17 | url: string;
|
18 |
|
19 | height: number;
|
20 |
|
21 | width: number;
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | anchorText?: number[];
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | anchorIcon?: number[];
|
37 |
|
38 | textColor?: string;
|
39 |
|
40 | textSize?: number;
|
41 | |
42 |
|
43 |
|
44 |
|
45 | textDecoration?: string;
|
46 | |
47 |
|
48 |
|
49 |
|
50 | fontWeight?: string;
|
51 | |
52 |
|
53 |
|
54 |
|
55 | fontStyle?: string;
|
56 | |
57 |
|
58 |
|
59 |
|
60 | fontFamily?: string;
|
61 | |
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 | backgroundPosition?: string;
|
69 | }
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 | interface ClusterIconInfo {
|
79 | text: string;
|
80 | index: number;
|
81 | title: string;
|
82 | }
|
83 |
|
84 | declare class ClusterIcon extends google.maps.OverlayView {
|
85 | |
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 | constructor(cluster: Cluster, styles: ClusterIconStyle[]);
|
93 |
|
94 | /**
|
95 | * Adds the icon to the DOM.
|
96 | */
|
97 | onAdd(): void;
|
98 |
|
99 | /**
|
100 | * Removes the icon from the DOM.
|
101 | */
|
102 | onRemove(): void;
|
103 |
|
104 | /**
|
105 | * Draws the icon.
|
106 | */
|
107 | draw(): void;
|
108 |
|
109 | /**
|
110 | * Hides the icon.
|
111 | */
|
112 | hide(): void;
|
113 |
|
114 | /**
|
115 | * Positions and shows the icon.
|
116 | */
|
117 | show(): void;
|
118 |
|
119 | /**
|
120 | * Sets the icon styles to the appropriate element in the styles array.
|
121 | *
|
122 | * @param style The icon label text and styles index.
|
123 | */
|
124 | useStyle(style: ClusterIconInfo): void;
|
125 |
|
126 | /**
|
127 | * Sets the position at which to center the icon.
|
128 | *
|
129 | * @param center The latlng to set as the center.
|
130 | */
|
131 | setCenter(center: google.maps.LatLng): void;
|
132 |
|
133 | /**
|
134 | * Creates the cssText style parameter based on the position of the icon.
|
135 | *
|
136 | * @param pos The position of the icon.
|
137 | * @return The CSS style text.
|
138 | */
|
139 | createCss(pos: google.maps.Point): string;
|
140 |
|
141 | /**
|
142 | * Returns the position at which to place the DIV depending on the latlng.
|
143 | *
|
144 | * @param latLng The position in latlng.
|
145 | * @return The position in pixels.
|
146 | */
|
147 | getPosFromLatLng_(latLng: google.maps.LatLng): google.maps.Point;
|
148 | }
|
149 |
|
150 | declare class Cluster {
|
151 | |
152 |
|
153 |
|
154 |
|
155 |
|
156 |
|
157 | constructor(mc: MarkerClusterer);
|
158 |
|
159 | /**
|
160 | * Returns the number of markers managed by the cluster. You can call this from
|
161 | * a <code>click</code>, <code>mouseover</code>, or <code>mouseout</code> event handler
|
162 | * for the <code>MarkerClusterer</code> object.
|
163 | *
|
164 | * @return The number of markers in the cluster.
|
165 | */
|
166 | getSize(): number;
|
167 |
|
168 | /**
|
169 | * Returns the array of markers managed by the cluster. You can call this from
|
170 | * a <code>click</code>, <code>mouseover</code>, or <code>mouseout</code> event handler
|
171 | * for the <code>MarkerClusterer</code> object.
|
172 | *
|
173 | * @return The array of markers in the cluster.
|
174 | */
|
175 | getMarkers(): google.maps.Marker[];
|
176 |
|
177 | /**
|
178 | * Returns the center of the cluster. You can call this from
|
179 | * a <code>click</code>, <code>mouseover</code>, or <code>mouseout</code> event handler
|
180 | * for the <code>MarkerClusterer</code> object.
|
181 | *
|
182 | * @return The center of the cluster.
|
183 | */
|
184 | getCenter(): google.maps.LatLng;
|
185 |
|
186 | /**
|
187 | * Returns the map with which the cluster is associated.
|
188 | *
|
189 | * @return The map.
|
190 | * @ignore
|
191 | */
|
192 | getMap(): google.maps.Map;
|
193 |
|
194 | /**
|
195 | * Returns the <code>MarkerClusterer</code> object with which the cluster is associated.
|
196 | *
|
197 | * @return The associated marker clusterer.
|
198 | * @ignore
|
199 | */
|
200 | getMarkerClusterer(): MarkerClusterer;
|
201 |
|
202 | /**
|
203 | * Returns the bounds of the cluster.
|
204 | *
|
205 | * @return the cluster bounds.
|
206 | * @ignore
|
207 | */
|
208 | getBounds(): google.maps.LatLngBounds;
|
209 |
|
210 | /**
|
211 | * Removes the cluster from the map.
|
212 | *
|
213 | * @ignore
|
214 | */
|
215 | remove(): void;
|
216 |
|
217 | /**
|
218 | * Adds a marker to the cluster.
|
219 | *
|
220 | * @param marker The marker to be added.
|
221 | * @return True if the marker was added.
|
222 | * @ignore
|
223 | */
|
224 | addMarker(marker: google.maps.Marker): boolean;
|
225 |
|
226 | /**
|
227 | * Determines if a marker lies within the cluster's bounds.
|
228 | *
|
229 | * @param marker The marker to check.
|
230 | * @return True if the marker lies in the bounds.
|
231 | * @ignore
|
232 | */
|
233 | isMarkerInClusterBounds(marker: google.maps.Marker): boolean;
|
234 |
|
235 | /**
|
236 | * Calculates the extended bounds of the cluster with the grid.
|
237 | */
|
238 | calculateBounds_(): void;
|
239 |
|
240 | /**
|
241 | * Updates the cluster icon.
|
242 | */
|
243 | updateIcon_(): void;
|
244 |
|
245 | /**
|
246 | * Determines if a marker has already been added to the cluster.
|
247 | *
|
248 | * @param marker The marker to check.
|
249 | * @return True if the marker has already been added.
|
250 | */
|
251 | isMarkerAlreadyAdded_(marker: google.maps.Marker): boolean;
|
252 | }
|
253 |
|
254 | type Calculator = (markers: google.maps.Marker[], clusterIconStylesCount: number) => ClusterIconInfo;
|
255 |
|
256 | /**
|
257 | * Optional parameter passed to the {@link MarkerClusterer} constructor.
|
258 | */
|
259 | interface MarkerClustererOptions {
|
260 |
|
261 | gridSize?: number;
|
262 | |
263 |
|
264 |
|
265 |
|
266 | maxZoom?: number;
|
267 | |
268 |
|
269 |
|
270 |
|
271 |
|
272 | zoomOnClick?: boolean;
|
273 | |
274 |
|
275 |
|
276 |
|
277 |
|
278 | averageCenter?: boolean;
|
279 | |
280 |
|
281 |
|
282 |
|
283 | minimumClusterSize?: number;
|
284 | |
285 |
|
286 |
|
287 |
|
288 |
|
289 |
|
290 |
|
291 |
|
292 | ignoreHidden?: boolean;
|
293 | |
294 |
|
295 |
|
296 |
|
297 |
|
298 | title?: string;
|
299 | |
300 |
|
301 |
|
302 |
|
303 |
|
304 |
|
305 |
|
306 |
|
307 |
|
308 |
|
309 |
|
310 |
|
311 |
|
312 |
|
313 |
|
314 |
|
315 |
|
316 |
|
317 | calculator?: Calculator;
|
318 | |
319 |
|
320 |
|
321 |
|
322 |
|
323 | clusterClass?: string;
|
324 | |
325 |
|
326 |
|
327 |
|
328 |
|
329 |
|
330 |
|
331 |
|
332 | styles?: ClusterIconStyle[];
|
333 | |
334 |
|
335 |
|
336 |
|
337 |
|
338 |
|
339 | enableRetinaIcons?: boolean;
|
340 | |
341 |
|
342 |
|
343 |
|
344 |
|
345 | batchSize?: number;
|
346 | |
347 |
|
348 |
|
349 |
|
350 |
|
351 |
|
352 |
|
353 |
|
354 | batchSizeIE?: number;
|
355 | |
356 |
|
357 |
|
358 |
|
359 |
|
360 |
|
361 | imagePath?: string;
|
362 | |
363 |
|
364 |
|
365 |
|
366 |
|
367 | imageExtension?: string;
|
368 | |
369 |
|
370 |
|
371 |
|
372 |
|
373 |
|
374 | imageSizes?: number[];
|
375 | }
|
376 |
|
377 | declare class MarkerClusterer extends google.maps.OverlayView {
|
378 | |
379 |
|
380 |
|
381 |
|
382 |
|
383 |
|
384 | constructor(map: google.maps.Map, markers?: google.maps.Marker[], options?: MarkerClustererOptions);
|
385 |
|
386 | /**
|
387 | * Implementation of the onAdd interface method.
|
388 | * @ignore
|
389 | */
|
390 | onAdd(): void;
|
391 |
|
392 | /**
|
393 | * Implementation of the onRemove interface method.
|
394 | * Removes map event listeners and all cluster icons from the DOM.
|
395 | * All managed markers are also put back on the map.
|
396 | * @ignore
|
397 | */
|
398 | onRemove(): void;
|
399 |
|
400 | /**
|
401 | * Implementation of the draw interface method.
|
402 | * @ignore
|
403 | */
|
404 | draw(): void;
|
405 |
|
406 | /**
|
407 | * Sets up the styles object.
|
408 | */
|
409 | setupStyles_(): void;
|
410 |
|
411 | /**
|
412 | * Fits the map to the bounds of the markers managed by the clusterer.
|
413 | */
|
414 | fitMapToMarkers(): void;
|
415 |
|
416 | /**
|
417 | * Returns the value of the <code>gridSize</code> property.
|
418 | *
|
419 | * @return The grid size.
|
420 | */
|
421 | getGridSize(): number;
|
422 |
|
423 | /**
|
424 | * Sets the value of the <code>gridSize</code> property.
|
425 | *
|
426 | * @param gridSize The grid size.
|
427 | */
|
428 | setGridSize(gridSize: number): void;
|
429 |
|
430 | /**
|
431 | * Returns the value of the <code>minimumClusterSize</code> property.
|
432 | *
|
433 | * @return The minimum cluster size.
|
434 | */
|
435 | getMinimumClusterSize(): number;
|
436 |
|
437 | /**
|
438 | * Sets the value of the <code>minimumClusterSize</code> property.
|
439 | *
|
440 | * @param minimumClusterSize The minimum cluster size.
|
441 | */
|
442 | setMinimumClusterSize(minimumClusterSize: number): void;
|
443 |
|
444 | /**
|
445 | * Returns the value of the <code>maxZoom</code> property.
|
446 | *
|
447 | * @return The maximum zoom level.
|
448 | */
|
449 | getMaxZoom(): number;
|
450 |
|
451 | /**
|
452 | * Sets the value of the <code>maxZoom</code> property.
|
453 | *
|
454 | * @param maxZoom The maximum zoom level.
|
455 | */
|
456 | setMaxZoom(maxZoom: number): void;
|
457 |
|
458 | /**
|
459 | * Returns the value of the <code>styles</code> property.
|
460 | *
|
461 | * @return The array of styles defining the cluster markers to be used.
|
462 | */
|
463 | getStyles(): ClusterIconStyle[];
|
464 |
|
465 | /**
|
466 | * Sets the value of the <code>styles</code> property.
|
467 | *
|
468 | * @param styles The array of styles to use.
|
469 | */
|
470 | setStyles(styles: ClusterIconStyle[]): void;
|
471 |
|
472 | /**
|
473 | * Returns the value of the <code>title</code> property.
|
474 | *
|
475 | * @return The content of the title text.
|
476 | */
|
477 | getTitle(): string;
|
478 |
|
479 | /**
|
480 | * Sets the value of the <code>title</code> property.
|
481 | *
|
482 | * @param title The value of the title property.
|
483 | */
|
484 | setTitle(title: string): void;
|
485 |
|
486 | /**
|
487 | * Returns the value of the <code>zoomOnClick</code> property.
|
488 | *
|
489 | * @return True if zoomOnClick property is set.
|
490 | */
|
491 | getZoomOnClick(): boolean;
|
492 |
|
493 | /**
|
494 | * Sets the value of the <code>zoomOnClick</code> property.
|
495 | *
|
496 | * @param zoomOnClick The value of the zoomOnClick property.
|
497 | */
|
498 | setZoomOnClick(zoomOnClick: boolean): void;
|
499 |
|
500 | /**
|
501 | * Returns the value of the <code>averageCenter</code> property.
|
502 | *
|
503 | * @return True if averageCenter property is set.
|
504 | */
|
505 | getAverageCenter(): boolean;
|
506 |
|
507 | /**
|
508 | * Sets the value of the <code>averageCenter</code> property.
|
509 | *
|
510 | * @param averageCenter The value of the averageCenter property.
|
511 | */
|
512 | setAverageCenter(averageCenter: boolean): void;
|
513 |
|
514 | /**
|
515 | * Returns the value of the <code>ignoreHidden</code> property.
|
516 | *
|
517 | * @return True if ignoreHidden property is set.
|
518 | */
|
519 | getIgnoreHidden(): boolean;
|
520 |
|
521 | /**
|
522 | * Sets the value of the <code>ignoreHidden</code> property.
|
523 | *
|
524 | * @param ignoreHidden The value of the ignoreHidden property.
|
525 | */
|
526 | setIgnoreHidden(ignoreHidden: boolean): void;
|
527 |
|
528 | /**
|
529 | * Returns the value of the <code>enableRetinaIcons</code> property.
|
530 | *
|
531 | * @return True if enableRetinaIcons property is set.
|
532 | */
|
533 | getEnableRetinaIcons(): boolean;
|
534 |
|
535 | /**
|
536 | * Sets the value of the <code>enableRetinaIcons</code> property.
|
537 | *
|
538 | * @param enableRetinaIcons The value of the enableRetinaIcons property.
|
539 | */
|
540 | setEnableRetinaIcons(enableRetinaIcons: boolean): void;
|
541 |
|
542 | /**
|
543 | * Returns the value of the <code>imageExtension</code> property.
|
544 | *
|
545 | * @return The value of the imageExtension property.
|
546 | */
|
547 | getImageExtension(): string;
|
548 |
|
549 | /**
|
550 | * Sets the value of the <code>imageExtension</code> property.
|
551 | *
|
552 | * @param imageExtension The value of the imageExtension property.
|
553 | */
|
554 | setImageExtension(imageExtension: string): void;
|
555 |
|
556 | /**
|
557 | * Returns the value of the <code>imagePath</code> property.
|
558 | *
|
559 | * @return The value of the imagePath property.
|
560 | */
|
561 | getImagePath(): string;
|
562 |
|
563 | /**
|
564 | * Sets the value of the <code>imagePath</code> property.
|
565 | *
|
566 | * @param imagePath The value of the imagePath property.
|
567 | */
|
568 | setImagePath(imagePath: string): void;
|
569 |
|
570 | /**
|
571 | * Returns the value of the <code>imageSizes</code> property.
|
572 | *
|
573 | * @return The value of the imageSizes property.
|
574 | */
|
575 | getImageSizes(): number[];
|
576 |
|
577 | /**
|
578 | * Sets the value of the <code>imageSizes</code> property.
|
579 | *
|
580 | * @param imageSizes The value of the imageSizes property.
|
581 | */
|
582 | setImageSizes(imageSizes: number[]): void;
|
583 |
|
584 | /**
|
585 | * Returns the value of the <code>calculator</code> property.
|
586 | *
|
587 | * @return the value of the calculator property.
|
588 | */
|
589 | getCalculator(): Calculator;
|
590 |
|
591 | /**
|
592 | * Sets the value of the <code>calculator</code> property.
|
593 | *
|
594 | * @param calculator The value
|
595 | * of the calculator property.
|
596 | */
|
597 | setCalculator(calculator: Calculator): void;
|
598 |
|
599 | /**
|
600 | * Sets the value of the <code>hideLabel</code> property.
|
601 | *
|
602 | * @param printable The value of the hideLabel property.
|
603 | */
|
604 | setHideLabel(printable: boolean): void;
|
605 |
|
606 | /**
|
607 | * Returns the value of the <code>hideLabel</code> property.
|
608 | *
|
609 | * @return the value of the hideLabel property.
|
610 | */
|
611 | getHideLabel(): boolean;
|
612 |
|
613 | /**
|
614 | * Returns the value of the <code>batchSizeIE</code> property.
|
615 | *
|
616 | * @return the value of the batchSizeIE property.
|
617 | */
|
618 | getBatchSizeIE(): number;
|
619 |
|
620 | /**
|
621 | * Sets the value of the <code>batchSizeIE</code> property.
|
622 | *
|
623 | * @param batchSizeIE The value of the batchSizeIE property.
|
624 | */
|
625 | setBatchSizeIE(batchSizeIE: number): void;
|
626 |
|
627 | /**
|
628 | * Returns the value of the <code>clusterClass</code> property.
|
629 | *
|
630 | * @return the value of the clusterClass property.
|
631 | */
|
632 | getClusterClass(): string;
|
633 |
|
634 | /**
|
635 | * Sets the value of the <code>clusterClass</code> property.
|
636 | *
|
637 | * @param clusterClass The value of the clusterClass property.
|
638 | */
|
639 | setClusterClass(clusterClass: string): void;
|
640 |
|
641 | /**
|
642 | * Returns the array of markers managed by the clusterer.
|
643 | *
|
644 | * @return The array of markers managed by the clusterer.
|
645 | */
|
646 | getMarkers(): google.maps.Marker[];
|
647 |
|
648 | /**
|
649 | * Returns the number of markers managed by the clusterer.
|
650 | *
|
651 | * @return The number of markers.
|
652 | */
|
653 | getTotalMarkers(): number;
|
654 |
|
655 | /**
|
656 | * Returns the current array of clusters formed by the clusterer.
|
657 | *
|
658 | * @return The array of clusters formed by the clusterer.
|
659 | */
|
660 | getClusters(): Cluster[];
|
661 |
|
662 | /**
|
663 | * Returns the number of clusters formed by the clusterer.
|
664 | *
|
665 | * @return The number of clusters formed by the clusterer.
|
666 | */
|
667 | getTotalClusters(): number;
|
668 |
|
669 | /**
|
670 | * Adds a marker to the clusterer. The clusters are redrawn unless
|
671 | * <code>noDraw</code> is set to <code>true</code>.
|
672 | *
|
673 | * @param marker The marker to add.
|
674 | * @param [noDraw] Set to <code>true</code> to prevent redrawing.
|
675 | */
|
676 | addMarker(marker: google.maps.Marker, noDraw?: boolean): void;
|
677 |
|
678 | /**
|
679 | * Adds an array of markers to the clusterer. The clusters are redrawn unless
|
680 | * <code>noDraw</code> is set to <code>true</code>.
|
681 | *
|
682 | * @param markers The markers to add.
|
683 | * @param [noDraw] Set to <code>true</code> to prevent redrawing.
|
684 | */
|
685 | addMarkers(markers: google.maps.Marker[], noDraw?: boolean): void;
|
686 |
|
687 | /**
|
688 | * Pushes a marker to the clusterer.
|
689 | *
|
690 | * @param marker The marker to add.
|
691 | */
|
692 | pushMarkerTo_(marker: google.maps.Marker): void;
|
693 |
|
694 | /**
|
695 | * Removes a marker from the cluster and map. The clusters are redrawn unless
|
696 | * <code>noDraw</code> is set to <code>true</code>. Returns <code>true</code> if the
|
697 | * marker was removed from the clusterer.
|
698 | *
|
699 | * @param marker The marker to remove.
|
700 | * @param [noDraw] Set to <code>true</code> to prevent redrawing.
|
701 | * @param [noMapRemove] Set to <code>true</code> to prevent removal from map but still removing from cluster management
|
702 | * @return True if the marker was removed from the clusterer.
|
703 | */
|
704 | removeMarker(marker: google.maps.Marker, noDraw?: boolean, noMapRemove?: boolean): boolean;
|
705 |
|
706 | /**
|
707 | * Removes an array of markers from the cluster and map. The clusters are redrawn unless
|
708 | * <code>noDraw</code> is set to <code>true</code>. Returns <code>true</code> if markers
|
709 | * were removed from the clusterer.
|
710 | *
|
711 | * @param markers The markers to remove.
|
712 | * @param [noDraw] Set to <code>true</code> to prevent redrawing.
|
713 | * @param [noMapRemove] Set to <code>true</code> to prevent removal from map but still removing from cluster management
|
714 | * @return True if markers were removed from the clusterer.
|
715 | */
|
716 | removeMarkers(markers: google.maps.Marker[], noDraw?: boolean, noMapRemove?: boolean): boolean;
|
717 |
|
718 | /**
|
719 | * Removes a marker and returns true if removed, false if not.
|
720 | *
|
721 | * @param marker The marker to remove
|
722 | * @param removeFromMap set to <code>true</code> to explicitly remove from map as well as cluster manangement
|
723 | * @return Whether the marker was removed or not
|
724 | */
|
725 | removeMarker_(marker: google.maps.Marker, removeFromMap?: boolean): boolean;
|
726 |
|
727 | /**
|
728 | * Removes all clusters and markers from the map and also removes all markers
|
729 | * managed by the clusterer.
|
730 | */
|
731 | clearMarkers(): void;
|
732 |
|
733 | /**
|
734 | * Recalculates and redraws all the marker clusters from scratch.
|
735 | * Call this after changing any properties.
|
736 | */
|
737 | repaint(): void;
|
738 |
|
739 | /**
|
740 | * Returns the current bounds extended by the grid size.
|
741 | *
|
742 | * @param bounds The bounds to extend.
|
743 | * @return The extended bounds.
|
744 | * @ignore
|
745 | */
|
746 | getExtendedBounds(bounds: google.maps.LatLngBounds): google.maps.LatLngBounds;
|
747 |
|
748 | /**
|
749 | * Redraws all the clusters.
|
750 | */
|
751 | redraw_(): void;
|
752 |
|
753 | /**
|
754 | * Removes all clusters from the map. The markers are also removed from the map
|
755 | * if <code>hide</code> is set to <code>true</code>.
|
756 | *
|
757 | * @param [hide] Set to <code>true</code> to also remove the markers
|
758 | * from the map.
|
759 | */
|
760 | resetViewport_(hide?: boolean): void;
|
761 |
|
762 | /**
|
763 | * Calculates the distance between two latlng locations in km.
|
764 | *
|
765 | * @param p1 The first lat lng point.
|
766 | * @param p2 The second lat lng point.
|
767 | * @return The distance between the two points in km.
|
768 | * @see http://www.movable-type.co.uk/scripts/latlong.html
|
769 | */
|
770 | distanceBetweenPoints_(p1: google.maps.LatLng, p2: google.maps.LatLng): number;
|
771 |
|
772 | /**
|
773 | * Determines if a marker is contained in a bounds.
|
774 | *
|
775 | * @param marker The marker to check.
|
776 | * @param bounds The bounds to check against.
|
777 | * @return True if the marker is in the bounds.
|
778 | */
|
779 | isMarkerInBounds_(marker: google.maps.Marker, bounds: google.maps.LatLngBounds): boolean;
|
780 |
|
781 | /**
|
782 | * Adds a marker to a cluster, or creates a new cluster.
|
783 | *
|
784 | * @param marker The marker to add.
|
785 | */
|
786 | addToClosestCluster_(marker: google.maps.Marker): void;
|
787 |
|
788 | /**
|
789 | * Creates the clusters. This is done in batches to avoid timeout errors
|
790 | * in some browsers when there is a huge number of markers.
|
791 | *
|
792 | * @param iFirst The index of the first marker in the batch of
|
793 | * markers to be added to clusters.
|
794 | */
|
795 | createClusters_(iFirst: number): void;
|
796 |
|
797 | /**
|
798 | * Extends an object's prototype by another's.
|
799 | *
|
800 | * @param obj1 The object to be extended.
|
801 | * @param obj2 The object to extend with.
|
802 | * @return The new extended object.
|
803 | * @ignore
|
804 | */
|
805 | extend(obj1: object, obj2: object): object;
|
806 |
|
807 | /**
|
808 | * The default function for determining the label text and style
|
809 | * for a cluster icon.
|
810 | *
|
811 | * @param markers The array of markers represented by the cluster.
|
812 | * @param numStyles The number of marker styles available.
|
813 | * @return The information resource for the cluster.
|
814 | * @ignore
|
815 | */
|
816 | static CALCULATOR: Calculator;
|
817 |
|
818 | /**
|
819 | * The number of markers to process in one batch.
|
820 | *
|
821 | */
|
822 | static BATCH_SIZE: number;
|
823 |
|
824 | /**
|
825 | * The number of markers to process in one batch (IE only).
|
826 | *
|
827 | */
|
828 | static BATCH_SIZE_IE: number;
|
829 |
|
830 | /**
|
831 | * The default root name for the marker cluster images.
|
832 | *
|
833 | */
|
834 | static IMAGE_PATH: string;
|
835 |
|
836 | /**
|
837 | * The default extension name for the marker cluster images.
|
838 | *
|
839 | */
|
840 | static IMAGE_EXTENSION: string;
|
841 |
|
842 | /**
|
843 | * The default array of sizes for the marker cluster images.
|
844 | *
|
845 | */
|
846 | static IMAGE_SIZES: number[];
|
847 | }
|
848 |
|
849 | interface String {
|
850 | trim(): string;
|
851 | }
|