LayerSwipe destroy

1456
17
Jump to solution
10-13-2013 10:16 PM
OrenGal
New Contributor III
Hi,
I have a toggle button for enabling and disabling the LayerSwipe.
After destroy(), one of the layers in the swipe is cropped.
application: http://gisn.tel-aviv.gov.il/iview2js/index.aspx

Tried in addition to add these lines to the destroy function:

LayerSwipe.disable();
LayerSwipe.destroy();
LayerSwipe=null;

CroppedTiledLayer.hide();
CroppedTiledLayer.show();
CroppedTiledLayer.refresh();
CroppedTiledLayer.resume();

But still layer is cropped (only sometimes, mostly IE10, can't understand it).
Thanks,
Oren.
0 Kudos
17 Replies
OrenGal
New Contributor III
update: It happens only with the new layerswipe.js.   when I returned the original 3.7 it's not happening.
0 Kudos
MarcoBoeringa
MVP Regular Contributor
Oren,

I guess this is some test datasets, but inserting fake traffic direction "arrows" as road lines on your map and symbolizing it on your map as part of a road layer, is really bad cartographic and GIS practice...
0 Kudos
OrenGal
New Contributor III
Marco,
Please answer in the right thread...
Oren
0 Kudos
MarcoBoeringa
MVP Regular Contributor
Marco,
Please answer in the right thread...
Oren


Eh... maybe I am missing something?, and you started another thread somewhere about cartography, but the link you posted shows this issue in the "Traffic & Parking" layer.
0 Kudos
OrenGal
New Contributor III
I don't understand what is 'fake traffic direction "arrows"'
please contact me directly (I did not create the MXD). oren.gal at gmail
Thanks
0 Kudos
MarcoBoeringa
MVP Regular Contributor
Oren, I just send you an e-mail with a screenshot of the issue I saw and a few other tips.
0 Kudos
MattDriscoll
Esri Contributor
Thanks Matt, but the result remains.
I will make a small project and send you with Esri services.
Oren


I think I understand your issue. This should fix it.
0 Kudos
OrenGal
New Contributor III
YES!!!
Thank Matt for great support!
Oren
0 Kudos