Dear all,
I am adding point using their coordinate (x,y) and i want to hide the different point and make them visible after button click. I think that something is wrong with my code.
Below is the JavaScript Code:
map.addLayer(facilitiesGraphicsLayer);
var x1 = 'facilitiesGraphicsLayer.add(new Graphic(new Point(6052367,2817478,map.spatialReference)))';
var x2 = 'facilitiesGraphicsLayer.add(new Graphic(new Point(6053464,2817499,map.spatialReference)))';
var x3 = 'facilitiesGraphicsLayer.add(new Graphic(new Point(6054562,2817520,map.spatialReference)))';
var xx1 = document.getElementById(x1);
xx1.style.display = 'hidden';
var xx2 = document.getElementById(x2);
xx2.style.display = 'hidden';
var xx3 = document.getElementById(x3);
xx3.style.display = 'hidden';
Any help will be appreciated.
Thanks to all of you.