Highlight a area with Google Maps JavaScript API v3

后端 未结 2 1766
小蘑菇
小蘑菇 2021-01-15 17:31

I want to highlight a area like on the image below which is taken from Google Maps. Is this possible to accomplish with the current version of their API (v3)? If yes, how?

2条回答
  •  离开以前
    2021-01-15 18:16

    You can automatically highlight an area with Google Maps Javascript API, here is an example:

    
    
      
        Place ID Finder
        
        
        
      
      
        

    Place ID:

    You will need to replace API KEY with your API KEY. Try e.g."Nea Smyrni 171 21, Greece" in the input and then select the first drop down option and notice that it automatically highlights the area!

提交回复
热议问题