Forum Discussion

jeffreyl's avatar
jeffreyl
Cloud Apps
09-14-2022
Solved

Open URL When Scatter Map Marker Is Clicked

I am building a scatter map and need to open a url (actually a Sisence dashboard) when a map marker is clicked. Thank You
  • harikm007's avatar
    09-16-2022

    Hi jeffreyl ,

    Try this script:

    
    
    widget.on('beforeviewloaded', function(se, ev) {
    
    	$.each(ev.options.markersArray, function(index, value){
    		value.on('click', function(){
    			window.open(
                "https://www.sisense.com/", "_blank");
    		})
    	})
    	
    })

    -Hari