Forum General

Leaflet and Xamarin

JoHaseJoHase DEMember

Hi all,
short question. Is it possible to use Leaflet in Xamarin (best case Xamarin Forms).
Many thanks,


  • tuyenvtuyenv VNUniversity ✭✭✭

    Hi @JoHase,

    Leaflet is a JS library, how do you want to use it in Xamarin? If you really want to do, you must work with HTML/JS/CSS and embed them in WebView.


  • tghtgh Member

    Hi @tuyenv

    How about popups in top of the map on HybridWebView, can those be handled on Xamarin Forms or need to be done in HTML.

  • SharmiSharmi USMember ✭✭

    Hi @tgh I am using a HybridWebview and I am trying to show googleMap in that web view. It is working fine in iOS but for Android its not loading the map. Do you have any idea why the map is not loading in case of android.

  • tghtgh Member

    Hi @Sharmi
    I intend to use Leaflet in a HybridWebview but I am not yet there.

  • Jeff_75Jeff_75 FRMember ✭✭
    edited March 2018

    Hi @tgh,
    I am currently working with leaflet embedded in webview when I just need to display marker on a map and in hybridwebview from Xlabs when I need to interact with the map (eventtrigger).
    What do you want to about it ? Do you need to work offline ?
    Look for "xamarin map using other source than google maps" on Stack.

    On my side I have an issue on iOS with the hybriwebview, that looks zoomed out in comparison with the webview version.
    (I can not post images for the moment...)

    Do you know, how to fix this issue ?

    I found the solution, I had to add this on IOS:
    < meta name="viewport" content="width=device-width, initial-scale=1.0">

Sign In or Register to comment.