@@ -49,7 +49,7 @@ import {DataLayerManager} from './../services/managers/data-layer-manager';
4949 'draggingCursor' , 'keyboardShortcuts' , 'zoomControl' , 'zoomControlOptions' , 'styles' , 'usePanning' ,
5050 'streetViewControl' , 'streetViewControlOptions' , 'fitBounds' , 'mapTypeControl' , 'mapTypeControlOptions' ,
5151 'panControlOptions' , 'rotateControl' , 'rotateControlOptions' , 'fullscreenControl' , 'fullscreenControlOptions' ,
52- 'scaleControl' , 'scaleControlOptions' , 'mapTypeId'
52+ 'scaleControl' , 'scaleControlOptions' , 'mapTypeId' , 'clickableIcons'
5353 ] ,
5454 outputs : [
5555 'mapClick' , 'mapRightClick' , 'mapDblClick' , 'centerChange' , 'idle' , 'boundsChange' , 'zoomChange'
@@ -246,6 +246,12 @@ export class AgmMap implements OnChanges, OnInit, OnDestroy {
246246 */
247247 mapTypeId : 'roadmap' | 'hybrid' | 'satellite' | 'terrain' | string = 'roadmap' ;
248248
249+ /**
250+ * When false, map icons are not clickable. A map icon represents a point of interest,
251+ * also known as a POI. By default map icons are clickable.
252+ */
253+ clickableIcons : boolean = true ;
254+
249255 /**
250256 * Map option attributes that can change over time
251257 */
@@ -255,7 +261,7 @@ export class AgmMap implements OnChanges, OnInit, OnDestroy {
255261 'streetViewControlOptions' , 'zoom' , 'mapTypeControl' , 'mapTypeControlOptions' , 'minZoom' ,
256262 'maxZoom' , 'panControl' , 'panControlOptions' , 'rotateControl' , 'rotateControlOptions' ,
257263 'fullscreenControl' , 'fullscreenControlOptions' , 'scaleControl' , 'scaleControlOptions' ,
258- 'mapTypeId'
264+ 'mapTypeId' , 'clickableIcons'
259265 ] ;
260266
261267 private _observableSubscriptions : Subscription [ ] = [ ] ;
@@ -336,7 +342,8 @@ export class AgmMap implements OnChanges, OnInit, OnDestroy {
336342 rotateControlOptions : this . rotateControlOptions ,
337343 fullscreenControl : this . fullscreenControl ,
338344 fullscreenControlOptions : this . fullscreenControlOptions ,
339- mapTypeId : this . mapTypeId
345+ mapTypeId : this . mapTypeId ,
346+ clickableIcons : this . clickableIcons
340347 } ) ;
341348
342349 // register event listeners
0 commit comments