Traffic Layer #274
-
What would be the best practice to display a traffic layer on the map? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I got something working but i don't know if that really is how it was supposed to be done
Any better way to do this? |
Beta Was this translation helpful? Give feedback.
-
As we don't have a Traffic Layer component your only option is to set things up manually like you did. You can use the |
Beta Was this translation helpful? Give feedback.
As we don't have a Traffic Layer component your only option is to set things up manually like you did. You can use the
libraries
prop onGoogleMap
which should simplify the loading of the script with the required library for you. Refer to the Advanced Usage section as well for ways to access the API after loading the script.