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
I am using Pigeon Maps to display the location of a few different items onto a Map. I want to render the Marker from within my own custom component, however it seems that unless the Marker component is a direct child (nothing in between) of the Map component the style transform is missed and so the Marker renders in the top left corner of the map.
Is this a known problem? Is there a solution i can use to get it to work?
I will supply a basic sample code to help explain what i am seeing:
Here is a screenshot showing the Marker in the TL corner and the dev tools open showing that the transform is missing:
Here is a screenshot of me doing the same thing but without using a "wrapper component", here you can see the Marker is correctly positioned and the transform is found in the dev tools.
I know that this could be resolved by not using a custom component but in my real world case i have a lot of extra code specific to this Marker and so keeping it all in one file is a real mess. Any help you could offer to explain how i might fix this would be gratefully received....
The text was updated successfully, but these errors were encountered:
Hi there. I'm not sure you still have the same issues. But I encountered the same problem and managed to solve it by passing props into the custom components like this.
Hi,
I am using Pigeon Maps to display the location of a few different items onto a Map. I want to render the
Marker
from within my own custom component, however it seems that unless theMarker
component is a direct child (nothing in between) of theMap
component the styletransform
is missed and so the Marker renders in the top left corner of the map.Is this a known problem? Is there a solution i can use to get it to work?
I will supply a basic sample code to help explain what i am seeing:
Here is a screenshot showing the Marker in the TL corner and the dev tools open showing that the
transform
is missing:Here is a screenshot of me doing the same thing but without using a "wrapper component", here you can see the Marker is correctly positioned and the
transform
is found in the dev tools.I know that this could be resolved by not using a custom component but in my real world case i have a lot of extra code specific to this Marker and so keeping it all in one file is a real mess. Any help you could offer to explain how i might fix this would be gratefully received....
The text was updated successfully, but these errors were encountered: