rungwiroon / BlazorGoogleMaps

Blazor interop for GoogleMap library
MIT License
325 stars 105 forks source link

Feature: Traffic, Transit and Bicycle Layer #339

Closed orbital-git closed 3 months ago

orbital-git commented 3 months ago

Hi,

I could not find a way to load the traffic layer.

The Google docs says this:

function initMap() {
  const map = new google.maps.Map(document.getElementById("map"), {
    zoom: 13,
    center: { lat: 34.04924594193164, lng: -118.24104309082031 },
  });
  const trafficLayer = new google.maps.TrafficLayer();

  trafficLayer.setMap(map);
}

window.initMap = initMap;

Is it possible to load that layer?

Thanks

valentasm1 commented 3 months ago

Interesting. Why nobody ever needed this. It looks like quite easy to implement. Will do next week. PR also wellcomed.

valentasm1 commented 3 months ago

https://www.nuget.org/packages/BlazorGoogleMaps/4.5.0

orbital-git commented 3 months ago

That was fast.

Thanks