How do I highlight markers on hover in Google Maps for a sortable table?

后端 未结 3 1027
灰色年华
灰色年华 2021-01-27 06:41

I have a table that I\'ve made sortable using the jQuery plugin Tablesorter 2.0. On the same page, I have a Google Map that displays a marker for each item in the table. Now, I

3条回答
  •  遇见更好的自我
    2021-01-27 06:50

    Take a look at this sample.

    This is how you subscribe to the client event.

    @(
        Html.Googlemap()
            .Name("map")
            .Markers(m => m.Add()
                           .Id("marker-1")
                           .Title("Hello World!"))
            .ClientEvents(events => events.OnMapLoaded("onMapLoadHandler")) 
     )
    
    
    • My Marker

    and this is how to trigger the map click.

    
    

提交回复
热议问题