You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes sense. The StaticGoogleMap should probably support this case. We have outlined a couple of things that we would like to add to a V2 and this seems like one of those things. But there is no timeline on V2. Could you try this
constBlank=()=>'';<StaticGoogleMapcenter={...}><Blank/></StaticGoogleMap>// or even<StaticGoogleMapcenter={...}>{()=>''}
</StaticGoogleMap>
The StaticGoogleMap can take a component that is not one exported from this lib. The child components actually do not "render" any HTML but instead return additional query params to add the the URL for the map. By giving it a component that returns an empty string, I believe you will get the result you are looking for.
First, thanks for this package!
I just want to display a map, centered in a location but I am getting
"Component must have `Marker`, `Path` or `Direction` child"
errorGoogle docs says that markers are optional
![image](https://user-images.githubusercontent.com/13673443/125278137-a01b6b00-e312-11eb-8a2b-de212f9fe67e.png)
so, why are they required? can we please make them optional?
The text was updated successfully, but these errors were encountered: