better performance when adding thousands of markers to bettermap.

per your request to rebase this commit on master in pull request #535, i'm resubmitting my changes.  the associated issue is #540.