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.

google.maps.SymbolPath

See original GitHub issue

I’m getting 'google' is not defined no-undef error when i use this:

 icon: {
                                  path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW,
                                  strokeColor: "red",
                                  scale: 3
                              }

can i access the .

SymbolPath

using react-google-maps?

Tnx

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
guyi0commented, Oct 17, 2017

Yes, You need to add /*global google*/ at top on map component

0reactions
mishacuciceacommented, Mar 1, 2019

global google*

Can you detail a bit where this should be put? getting not defined

Read more comments on GitHub >

github_iconTop Results From Across the Web

Symbols (Vector-Based Icons) | Maps JavaScript API
The Maps JavaScript API provides some built-in symbols that you can add to markers or polylines via the SymbolPath class. The default symbols...
Read more >
javascript - Google map Marker customization by ...
SymbolPath.CIRCLE for rounded markers. But my case few times i want to make use of SQUARED MARKERS with some text inside marker. How...
Read more >
Google Maps - Symbols
Google Maps - Symbols, In addition to markers, polygons, polylines, ... SymbolPath.CIRCLE. Backward Pointing arrow (closed) − google.maps.SymbolPath.
Read more >
Bug: google.maps.SymbolPath class miscalculates SVG paths ...
The SymbolPath class makes erroneous calculations to reposition path coordinates that contain bezier curves. Try the following SVG path symbol and increase ...
Read more >
Marker icons? · Issue #28 · GuillaumeLeclerc/vue-google- ...
Right now I've got: markers: [{ position: {lat: 41.585095, lng: -93.624523}, ifw:false, content:'', icon: { path: google.maps.SymbolPath.
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