Improve the example code#304
Improve the example code#304aaronmader wants to merge 2 commits intogoogle-map-react:masterfrom aaronmader:aaronmader-patch-1
Conversation
Update the example code to include a marker definition (MyGreatPlace) for completeness.
|
Thank you! But - This is readme example.
So sorry I don't think this is needed. |
|
Solid points.. I did eventually find my way over to https://github.com/istarkov/google-map-react-examples which was a HUGE help. I got stuck because I was assuming that there was more to the MyGreatPlace component. (And I suppose that's where the other +1's in the issue were struggling too). You're instruction Maybe if we just add another simple example using a div? (I'll create a pull request to show what I mean) |
Add a simple marker example for first-time users.
|
I was thinking about improving that part too and suddenly found this PR already in place :) So I am +1 on current patch or maybe can suggest to apply following patch to have only one usage of "MyGreatPlace" in the example:
In general I would prefer to have next interface when it comes to markers on the map to make it less confusing: But that's another story. |
|
The lack of detail about MyGreatPlace was a source of frustration for me, as well, and led me to initially pass up this module. @istarkov your argument is that the Readme needs to be short — explaining MyGreatPlace module would barely lengthen it at all — four sentences, maybe, and a line or two of code? Worth it for the clarity! |
|
Thank you all, please look at current readme |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Update the example code to include a marker definition (MyGreatPlace) for completeness.
Addresses issue #300