Questions tagged [mapsui]

Mapsui (pronounced map-su-wii) is a C# map component for application that supports WPF, UWP, Android, iOS and started as a fork of SharpMap.

Mapsui (pronounced map-su-wii) is a C# map component for application. Mapsui is a GIS tool capable of loading vector and Bitmap data using built in styles or custom styles.

Mapsui supported WPF, UWP, Android and iOS platforms. The Mapsui core assembly is PCL Profile 111 for v1 and .NET Standard 1.3 for v2. Mapsui is designed to be fast and responsive and leverages to capabilities of SharpMap as it started as a fork of SharpMap.

Mapsui is distributed on GitHub and NuGet under an LGPL license.

41 questions
3
votes
1 answer

Display Linestring and Trackpoints with Mapsui

my intention is to display a gps track and the corresponding trackpoints with Mapsui (wpf) on a map. I tried the following code. The result is that the blue linestring is displayed (ok), the red track points (ok) but for any reason you see white…
Michael Meyer
  • 2,179
  • 3
  • 24
  • 33
3
votes
1 answer

How to use Mapsui 2.0.1 with Xamarin.Forms?

As far as I understand we could use Mapsui in Xamarin.Forms starting from Mapsui 2.0 version. Currently, the Mapsui version is 2.0.1, and Xamarin.Forms is 4.6. I was looking for a simple example or tutorial that could guide me on how to add a…
dalios
  • 131
  • 1
  • 10
2
votes
1 answer

How to open current location map with a pin on it in MAPSUI in MAUI. I need to show map on my MAUI application

As i have tried the below line of code for MAPSUI to get the map but it is not working. mapView.MyLocationLayer.UpdateMyLocation(new UI.Maui.Position(e.Latitude, e.Longitude));
Abhi
  • 85
  • 6
2
votes
1 answer

MapsUI polygon blocks mapClick

I have a layer with a number of polygons, where the layer is marked as NOT being an infolayer myLayer = new Layer() { IsMapInfoLayer = false... I also have an eventhandler for clicking the map defined in the xaml MapClicked="myClickHandler" This…
JoeTaicoon
  • 1,383
  • 1
  • 12
  • 28
2
votes
1 answer

Mapsui Xamarin Forms center map

I'm using Mapsui 2.0-beta.22 and Xamarin Forms 3.4.0 for my app. I can't get map centering work, I have tried many examples from stack, other sites and Mapsui examples. The only "available" method for me is: map.Home = n =>…
2
votes
1 answer

Mapsui Error: How to fix PresentationSource is null?

I have started to develop a WPF application with Mapsui. First I tried to get familiar with Mapsui in a seperat Visual Studio project. Now I want to include my code to my main project. At the moment I get the following error message from which I…
Raspi User
  • 33
  • 3
2
votes
4 answers

Mapsui adding map pins in Xamarin Forms

I need to add a bunch of pins on a MapsUI map control that uses OpenStreetMap tiles. The problem is I cant find anything mentioning pins in their documentation so my question is: Are there any pins available but have different names or i have to…
knightLoki
  • 480
  • 1
  • 6
  • 11
1
vote
1 answer

How to get SKTypeface.FromFamilyName to return a font for Japanese, Korean, Chinese (Android + iOS, Xamarin.Forms)

I'm using a library that uses SKTypeface.FromFamilyName internally to render font on the screen. However, as I found out if the text to display is japanese, korean or chinese, it just prints squares. I tried to add a custom font to my project but I…
1
vote
2 answers

Relocate and Resize Mapsui Callouts in .NET Maui

I am currently using Mapsui in my .NET Maui project. I have gotten to the point of building out my callouts and displaying one at a time, but they are anchored to the pins for the locations (seen here): I was wondering if there was a way to make…
RPBruiser
  • 149
  • 1
  • 1
  • 13
1
vote
1 answer

How to use a .pgm image file as a custom map in Mapsui

I am developing a wpf app for controlling a ROS based robot. And I want to show a map from the robot in the UI using Mapsui. Currently I am using canvas to display the map so when I have a lot of waypoints and other indicators on the map, it's…
kglm
  • 146
  • 6
1
vote
0 answers

Mapsui - how to provide current user's location and focus map on it?

I am following the quickstart at https://mapsui.com/documentation/getting-started-xamarin-forms.html and wonder if I need to obtain the location by myself (with e.g Xamarin.Essentials' Location routines) or the Mapsui will obtain one by itself. I've…
eltomek
  • 233
  • 1
  • 10
1
vote
1 answer

OpenStreetMap is not showing anymore using OsmSharp and Mapsui

I'm still fairly new to Visual Studio/Xamarin but I had a simple OpenStreetMap sample running awhile ago for Android that did display a map but that doesn't seem to display map anymore though I haven't changed the code for this sample in awhile as…
oosie
  • 63
  • 5
1
vote
1 answer

How save a part of a map with Mapsui?

For a project, i'd like to save a part of a map and use it when i'm offline. I'd like to know if it is possible to save a part of map using Mapsui ? I already search but I didn't found something good..
Alex
  • 15
  • 4
0
votes
0 answers

WinUI Mapsui Why setting zoom resets map centering?

I've got a question about zooming and centering using Mapsui on a WinUI project. Why does the map reset its centering when I perform ZoomToLevel? This is my code: public MainWindow() { InitializeComponent(); …
TimoFran
  • 11
  • 3
0
votes
0 answers

Why MapsUI panning doesn't work in AvaloniaUI?

I have this xaml code in AvaloniUI:
AdamA
  • 149
  • 1
  • 8
1
2 3