Auto-center map with multiple markers in Google Maps API v3

后端 未结 8 1028
梦如初夏
梦如初夏 2020-12-07 06:38

This is what I use to display a map with 3 pins/markers:



        
8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 07:14

    I've tryied all answers of this topic, but just this below worked fine on my project.

    Angular 7 and AGM Core 1.0.0-beta.7

    
      
      
    
    

    The properties [agmFitBounds]="true" at agm-marker and [fitBounds]="true" at agm-map does the job

提交回复
热议问题