-
Notifications
You must be signed in to change notification settings - Fork 935
getting a handle on the map without using recompose #824
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
Comments
recompose is just a convenient wrapper for the decorator syntax. See Step 4 of https://tomchentw.github.io/react-google-maps/#usage--configuration for an example comparison of code without recompose. #636 (comment) may also be relevant. |
Thank you for responding! I saw all that. I am trying to access the map from the MyMapComponent, like the problems it seems everyone else had. The following is my code: const MyMapComponent = withScriptjs(withGoogleMap(props => class MapComponent extends React.PureComponent {
} export default MapComponent; |
Your code looks fine to me barring 2 syntax errors - an opening bracket |
Thank you for responding! That was not the issue. Currently after changing my code I am referencing the map, however my current issue is that I am not getting a new center after dragging the map. Here is my code: export default class MapComponent extends React.Component {
} |
try this: import React from "react"; export default class GoogleMapBox extends React.Component {
} |
Uh oh!
There was an error while loading. Please reload this page.
How can this be done? I am trying to fetch using places API and I am unable to get a handle on the map to get the bounds
The text was updated successfully, but these errors were encountered: