Angular 角度谷歌地图组件图标不工作

Angular 角度谷歌地图组件图标不工作,angular,typescript,google-maps,ionic-framework,Angular,Typescript,Google Maps,Ionic Framework,我使用和所有的工作都很好,除了自定义图标。我把它设置如下。你能告诉我为什么它不工作吗 mapOptions = { center: { lat: store.latitude, lng: store.longitude }, zoom: 11, mapId: environment.googleMapId, icon: 'https://developers.google.com/maps/docu

我使用和所有的工作都很好,除了自定义图标。我把它设置如下。你能告诉我为什么它不工作吗

 mapOptions = {
            center: { lat: store.latitude, lng: store.longitude },
            zoom: 11,
            mapId: environment.googleMapId,
            icon: 'https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png',
            

        } as google.maps.MapOptions;

我的错。我需要在
标记选项下设置它,如下所示:

markerOptions: {
                icon: {
                    url:
                        'https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png',
                   

                }, draggable: false
            }