cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Open URL When Scatter Map Marker Is Clicked

jeffreyl
8 - Cloud Apps
8 - Cloud Apps

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
8 - Cloud Apps
8 - Cloud Apps

Works Great, Thank you!!

leo82
9 - Travel Pro
9 - Travel Pro

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

Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]