Working example of angular-google-maps search function

后端 未结 4 1885
深忆病人
深忆病人 2021-02-05 07:03

Does anyone have an example of a working search box like the one the angular-google-maps-team is showing under \'search-box\' on this site: https://angular-ui.github.io/angular-

4条回答
  •  醉话见心
    2021-02-05 07:42

    Gavin's answer is correct,just some more details about the 'searchbox.tpl.html of his example. It has to be placed outside of the directive like this:

    
        

    Working plunkr: http://embed.plnkr.co/1rpXQhcZqwJ7rv0tyK9P/ (for some reason the plunkr only worked in chrome for me but not in firefox)

    I could not comment on Gavin's answer because of lack of repution, this is why I add the info as additional answer.

提交回复
热议问题