Widgets question

1385
2
08-08-2016 08:08 PM
Labels (1)
RamS1
by
New Contributor


Is it possible to add tooltip for zoom in/out controls?

I am also looking to add scale as tooltip for added layers. could you provide details steps to achieve this functionality.

I noticed find my location doesn't work on Google Chorme. Is it a know bug? (location is turned on under advanced settings)

Thanks for you help!

Tags (1)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Ram,

  Sure you can add a tooltip to the zoom slider (if using WAB Dev) by editing the ZoomSlider\Widget.html:

(added the title attribute)

<div class="jimu-corner-all">
  <div class="zoom zoom-in" data-dojo-attach-point="btnZoomIn"
   data-dojo-attach-event="onclick:_onBtnZoomInClicked" title="Zoom In">+</div>
  <div class="zoom zoom-out" data-dojo-attach-point="btnZoomOut"
   data-dojo-attach-event="onclick:_onBtnZoomOutClicked" title="Zoom In">–</div>
</div>

When you say you want to add scale tooltip on map layers can you elaborate (minscale maxscale or both)?

The locate button is disabled in chrome if your website is not using https:

Untitled-1.jpg

RamS1
by
New Contributor

Hi Rob,

Zoom in/out tooltip works like a treat. Thank you!

"find location"  finds inaccurate location using https on chrome only. any idea?

I required to show min and max scale. Can I set for individual layers. e.g. layer A min scale, layer B min and max scale etc

0 Kudos