title: Change the default position of zoom control in leaflet map of Shiny app
body: <p>I am using Shiny app to create leaflet map, but want to change the default position of zoom control from <code>topleft</code> to <code>topright</code>.</p>
  
  <p>R <code>leaflet</code> package sets the default position as <code>topleft</code> in the source codes. </p>
  
  <p>Following this question: <a href="https://stackoverflow.com/questions/22926512">Customize Zoom in/out button in leaflet.js</a>, we can use <code>map.zoomControl.setPosition('topright');</code> to change position of zoom control.</p>
  
  <pre><code>var map = L.map('map', {
    zoomControl: true
  });
  map.zoomControl.setPosition('topright');
  </code></pre>
  
  <p>Could I create a R function to set new position of <code>zoomControl</code>? For example,</p>
  
  <pre><code>zoomControlPosition &lt;- function(map, position = 'topleft') {
      # New codes add here
  }
  </code></pre>
  
  <p>I guess it involves some <code>js</code>, but I have no experience of <code>js</code>. Thanks for any suggestions.</p>