Google maps listener event acts like a click even though it is a mouseover

前端 未结 3 1437
后悔当初
后悔当初 2021-01-25 00:33

I am adding these two google.maps.event.addListener events

google.maps.event.addListener(markerAcademicCenter, \"mouseover\", function (e) {
   markerIconAcademi         


        
3条回答
  •  萌比男神i
    2021-01-25 01:00

    You can check the code below, so that you will be clear what I mean to say :

    
    
    
    
    
    Google Maps JavaScript API v3 Example: Map Simple
    
    
    
    
    
    
      
    All
    Restaurants
    Lodging

    Suggested
    Locations

    Suggested
    Address

    This is a working example.

提交回复
热议问题