Skip to content

4.2.0

Compare
Choose a tag to compare
@valentasm1 valentasm1 released this 25 Apr 11:16
· 98 commits to master since this release

Loading google maps libraries (Support/Move to) #277
https://www.nuget.org/packages/BlazorGoogleMaps/4.2.0
Added way to loud libraries via google recommended bootstrap loader
It works by invoking blazorGoogleMaps.objectManager.initMap with passed parameters
https://developers.google.com/maps/documentation/javascript/overview#Loading_the_Maps_API

public void ConfigureServices(IServiceCollection services)
{
    services.AddRazorPages();
    services.AddServerSideBlazor().AddHubOptions(config => config.MaximumReceiveMessageSize = 1048576);
    services.AddBlazorGoogleMaps(opt =>
    {
        opt.KeyProvider = () => "XXXXXXXXXXXXXXXXXXXXXXX";
        opt.UseBootstrapLoader = true;
        opt.Version = "beta";
        opt.Libraries = "places,visualization,drawing,marker";
    });
}