Click wpsl-stores li to open infowindow
-
Hi there,
This is a truly excellent plugin, so thanks for developing it. I am looking for a simple feature but haven’t been able to successfully adapt the js to make it work.
I want to add a function where when the user clicks on a wpsl-stores li item, the corresponding infowindow will open.
I’ve attempted this using some code already in the module and it is opening the infowindow, however its contents are wrong.
On line 814:
if ( wpslSettings.markerBounce == 1 ) { $( "#wpsl-stores" ).on( "click", "li", function() { setInfoWindowContent( marker, createInfoWindowHtml( infoWindowData, storeId, streetViewAvailable ) ); infoWindow.setContent( InfoWindowContent ); infoWindow.open( map, marker ); }); }
Is this something that you are planning to add in future, or could you guide me in some way?
Many thanks,
Max
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Click wpsl-stores li to open infowindow’ is closed to new replies.