Help with code sample using the MapSurfer.Net.Core nuget package

64 views
Skip to first unread message

Srinivas Ganti

unread,
Apr 7, 2017, 3:42:41 PM4/7/17
to MapSurfer.NET
Can some one help with a code sample? This is what I am trying to achieve (in a .NET service):
  • Load a base map (either google maps or open street map)
  • Add some in-house tile layers to it (weather data)
  • Draw a poly line
  • Export to an image.

Runge

unread,
Apr 26, 2017, 3:50:13 PM4/26/17
to MapSurfer.NET
Hi,

At the minute, there is no way to add tile layers. If you want this feature, you need to implement it on your own.
Your custom layer class has to be inherited from MapSurfer.Layers.Layer class. All drawing operations has to be done in overloaded function
public override void Render(IRenderer renderer, RenderContext context)
// draw tiles within a map view.
// draw polyline
Reply all
Reply to author
Forward
0 new messages