question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Difference in Polyline Rendering on Mapsui and KML Viewer

See original GitHub issue

Hi, I have noticed a difference in the rendering of a polyline on Mapsui and on a KML viewer(using the polylines returned from the Mapsui library). The angles don’t align properly. The polylines rendered on the KML view is correct since I corroborated it with other KML viewers. I used version 2.0.3 of Mapsui.Forms

KML viewer used - http://kmlviewer.nsspot.net/

Snapshot taken from Mapsui - vvg_map

Snapshot taken from the KML Viewer - image

This is the contents of the kml file -

<?xml version="1.0" encoding="utf-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Folder> <Placemark> <name>Start Point</name> <Point> <coordinates>-73.613861083984375,45.540431976318359</coordinates> </Point> </Placemark> <Placemark> <name>Final Path</name> <description>Final Path</description> <LineString> <extrude>true</extrude> <tessellate>true</tessellate> <altitudeMode>absolute</altitudeMode> <coordinates>-73.613861083984375,45.540431976318352,0 -73.613826212056935,45.540420586979728,0 -73.613799110292646,45.540461294483322,0 -73.613775862327316,45.540453701592085,0 -73.613786703028424,45.54043741858883,0 -73.613763455072956,45.540429825697579,0 -73.613752614370156,45.540446108699811,0</coordinates> </LineString> </Placemark> </Folder> </kml>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
januswcommented, Sep 20, 2021

So perhaps wait for the release.

Note: You don’t necessarily have to wait for a release. The fix has been merged to master and we have CI builds that generate nupkgs for every revision. You could just use the nuget packages of the current master branch (via a local packages source in VS): https://ci.appveyor.com/project/pauldendulk/mapsui/builds/40834197/artifacts

HTH.

1reaction
BrianVancecommented, Sep 27, 2021

The fix has now been released as part of rc.3. I will close this issue.

We tested the rc.3 version and the lines are rendering as expected. Thanks a lot Paul for this hotfix!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

MKMapView: Why are my MKPolyline(s) invisible?
Hi! Years ago Apple created an MKMapView demo called KMLViewer. It includes a KMLParser that reads a KML file and converts the data...
Read more >
Displaying KML | Maps JavaScript API
This tutorial shows you how to display information of a KML file in a Google map and sidebar. For more information on using...
Read more >
KML should draw a red polyline or blue polyline?
This means that Google Earth is correctly displaying the KML rendering features using <color>7f0000ff</color> with a red color. Google Maps ...
Read more >
Show a kml (which uses longitude and latitude EPSG:4326 ...
I am showing a kml layer, over OSM. The points in the kml are latitude/longitude (EPSG:4326). I don't have to convert any points...
Read more >
Geo shapes
A polyline can be used for drawing paths similar to routes. A polygon ( H.map.Polygon ) is similar to a polyline, except it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found