title: Compute zoom level based on screen density
body: <p>I'm experiencing with bing maps in a Xamarin.Forms application targeting Android and iOS.
  The same code on 2 devices with different screen size and density shows a very different result:</p>
  <p>Android (Moto E4 Plus) 1280 x 720 px / 267 ppp</p>
  <p><a href="https://i.stack.imgur.com/psKHk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/psKHk.png" alt="The map on Android" /></a></p>
  <p>iOS (iPhone 7 Plus) 1920 x 1080 / 401 ppi</p>
  <p><a href="https://i.stack.imgur.com/DoIQg.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DoIQg.jpg" alt="the map on iOS" /></a></p>
  <p>So I'm thinking that I simply need to compute the appropriate zoom level to use when calling <a href="https://docs.microsoft.com/en-us/bingmaps/v8-web-control/map-control-concepts/map/change-the-map-view" rel="nofollow noreferrer">map.setView</a>({center: ..., zoom: ... }).</p>
  <p>Am I on the right track here? If so how can I compute the zoom level based on the screen density?</p>
  <p>Thanks in advance.</p>