AnsweredAssumed Answered

Need Locate button in embedded self-hosted Shortlist

Question asked by fimpe0011 on Jul 20, 2017
Latest reply on Jul 20, 2017 by fimpe0011

I am required to embedd a storymap that has a locate button. By default storymaps do not show the locate button when embedded in another page (via an <iframe> element).


I am working with the Shortlist template . I am self-hosting the code. Where in the code could I change the logic so that it allows me to add the locate button when it is embedded in another page?


In a previous version of this template I could change the js code (viewer-min.js) where it checks for the condition !== window.self  but in the latest version (2.3.2) this same change does not lead to the location button being displayed in an <iframe> element any longer. I am not sure why.


I'd appreciate your help. Thanks.