ELEMNTS TO HIDE
See original GitHub issueIn previous version, the pluggin was able to hide easily elemnts
(elementsToHide: 'p, h2, .leaflet-control-zoom')
In the last version I cannot find this option. I know that exist the option “hiden” but it hide all the controls. Actually I need to hide only zoom bar since I need to show some texts and the scale bar. Is ther any option to choose what I want to show? Could you write a simple example?
Thanks so much
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Hiding DOM elements - ally.js
Use the hidden attribute to completely hide an element. · Use the aria-hidden attribute to hide an element from the accessibility tree. ·...
Read more >10 Ways to Hide Elements in CSS - SitePoint
10 Ways to Hide Elements in CSS · 1. opacity and filter: opacity() · 2. color Alpha Transparency · 3. transform · 4....
Read more >CSS Layout - The display Property - W3Schools
Display: none;. display: none; is commonly used with JavaScript to hide and show elements without deleting and recreating them. Take a look at...
Read more >8 Proper Ways to Hide Elements on Your Website With CSS ...
1. Use display: none · 2. Use visibility: hidden · 3. Hide an Element Via CSS on a Specific Page or Post ·...
Read more >Hide or show elements in HTML using display property
To hide an element, set the style display property to “none”. document.getElementById("element").style.display = "none";. To show an element, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
And also add
hideControlContainer
option to false, I think that’ll keep your scale bar in placeAfter searching bundle.js, I found that neither the hideClasses option nor the _toggleClasses function are defined, whereas the src does https://github.com/rowanwins/leaflet-easyPrint/blob/75b3193cbe40b1e90c7f677a63d0405ad9e906f2/src/index.js#L14 https://github.com/rowanwins/leaflet-easyPrint/blob/75b3193cbe40b1e90c7f677a63d0405ad9e906f2/src/index.js#L111 https://github.com/rowanwins/leaflet-easyPrint/blob/75b3193cbe40b1e90c7f677a63d0405ad9e906f2/src/index.js#L200 https://github.com/rowanwins/leaflet-easyPrint/blob/75b3193cbe40b1e90c7f677a63d0405ad9e906f2/src/index.js#L429
Maybe some other things have been left out of your build.