radioman / greatmaps

GMap.NET - Great Maps for Windows Forms & Presentation
916 stars 410 forks source link

add capability to create a new map provider at runtime #135

Open kd7mrx opened 5 years ago

kd7mrx commented 5 years ago

This adds an "AddProvider" method to GmapProviders so that a greatmaps client can create and use a customized provider.

See my fork at https://github.com/kd7mrx/greatmaps for modified demo programs that show how this can be used. Note that the modified demos use a hard-coded URL pointing to a private tile server on my local network. In a real application, that server base URL might be supplied from an application config file. The key point is that the custom map provider could be built into the application, not into the Gmap.NET core.