question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello, I am trying to add a legend, I though about using the overlay view but I want something more like the example on here: https://developers.google.com/maps/documentation/javascript/adding-a-legend

Looks like that involves pushing to the current instance of map inmap.controls? So is there any way to do this? Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jm90mcommented, Jun 19, 2017

@aldorl nope, I just made my legend through a custom react component outside this library.

0reactions
DanielDouradoFsacommented, Oct 10, 2022

Hi. i solve this based on https://developers.google.com/maps/documentation/javascript/adding-a-legend. Component_google In onGoogleReady: onGoogleReady And it works great! The google prop we get from props is not the same as google, we should use google which is received from the second onReady parameter. Hope it helps y’all

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add a legend to a chart - Microsoft Support
Add a chart legend · Click the chart. · Click Chart Elements Plus next to the table. The Elements icon is on the...
Read more >
How to Add a Legend in an Excel Chart - YouTube
In today's tutorial, we're going to talk about how to add a legend in an Excel chart. Including a legend in a chart...
Read more >
Add a legend—ArcGIS Pro | Documentation
To add items, select a layer in the Contents pane and drag it to the legend group in the same pane. Note: A...
Read more >
Add Legend to Graph - MATLAB & Simulink - MathWorks
Create Simple Legend​​ Create a figure with a line chart and a scatter chart. Add a legend with a description for each chart....
Read more >
How to Add a Legend in an Excel Chart - EasyClick Academy
If you want to display the legend for a chart, first click anywhere within the chart area. Then click on the green plus...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found