add capability to create a new map provider at runtime #135
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.