Compute anchor value only once
Merge pull request #1926 from fredj/cache-anchor

Compute anchor value only once
Expose the map renderer type to the public API

In the case  where the map decides itself which renderer to use. It can
be convenient for the developer to have knowledge of the choice made.