AnsweredAssumed Answered

Locate Button Disapears

Question asked by jay.kapalczynski on Dec 7, 2017
Latest reply on Dec 7, 2017 by rscheitlin

I am adding a Locate Button to my app....when I refresh the screen I can see it for a brief second but then it goes away.

 

Why does it disapear?

 

HTML
<div id="map" class="shadow" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'">
   <div id="LocateButton"></div>     
   <div id="BasemapToggle"></div>
   <div id="HomeButton"></div> 
   <div id="search"></div>     
</div>


JAVSCRIPT
var geoLocate = new LocateButton({
  map: map
}, "LocateButton");
geoLocate.startup();


CSS
#LocateButton {
    position: absolute;
    top: 230px;
    left: 40px;
    z-index: 60;
}     

Outcomes