cancel
Showing results for 
Search instead for 
Did you mean: 

Open URL When Scatter Map Marker Is Clicked

jeffreyl
7 - Data Storage
7 - Data Storage

I am building a scatter map and need to open a url (actually a Sisence dashboard) when a map marker is clicked. Thank You

1 ACCEPTED SOLUTION

harikm007
13 - Data Warehouse
13 - Data Warehouse

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

View solution in original post

3 REPLIES 3

harikm007
13 - Data Warehouse
13 - Data Warehouse

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

jeffreyl
7 - Data Storage
7 - Data Storage

Works Great, Thank you!!

leo82
7 - Data Storage
7 - Data Storage

Would be great if you share post a live gif image of how this works in real life. sometimes visual helps