Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Traffic, Transit and Bicycle Layer #339

Closed
orbital-git opened this issue Jun 21, 2024 · 3 comments
Closed

Feature: Traffic, Transit and Bicycle Layer #339

orbital-git opened this issue Jun 21, 2024 · 3 comments

Comments

@orbital-git
Copy link

orbital-git commented Jun 21, 2024

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
Copy link
Collaborator

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

@valentasm1 valentasm1 changed the title Traffic Layer Feature: Traffic, Transit and Bicycle Layer Jun 22, 2024
@valentasm1
Copy link
Collaborator

@orbital-git
Copy link
Author

That was fast.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants