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
the custom marker change position whenever i zoom or drag the map #1193
Comments
facing the same issue as well |
same ,and just an advice remove ur key from the post ihope the creator respond i've been trying to make it work 1week now all my project depend on this |
Thank you for your advice I did remove the key |
did you find a solution ? |
I have a same problem my custom marker change position when i zoom in and zoom out. |
No not yet, unfortunately |
i switched to this library at it works perfectly google-maps-react-markers |
Facing the same issue, did anyone find any solution? |
@george-steven0 your key is still there. You have to click on the "edited" button and delete the old entry. At this point your key is compromised. You should just generate a new one and discard this one. |
I have that issue too! Will probably do @dorakadri if no solution is found |
I am also facing the same issue. @dorakadri could you please debug the library as per required? |
the library allow u to display ur marker as component here an exemple : <GoogleMap |
@dorakadri Yes, we are able to display the marker but the issue remains. Issue still remains. It makes more bad impact on phones when users pinch in or out of the map. Could you please do the needful in the library or suggest any change? |
I completely changed the library its not this one its another one forget about this one |
Is there an update on the subject? I'm facing the same problem |
Me too !! |
try this to marker div : |
Is there an update on that topic? |
I ended up using another library - google-maps-react-marker. It's doing pretty much the same job and worked fine for me |
@AEidSPL worked for me! thanks |
here is the code i'm using i dont know if there is something wrong i'm doing here but everything is rendered and works fine except the markers they keep change position when drag the map to any direction or when zoom in/out the map
here is the code i'm using below.
import GoogleMapReact from 'google-map-react';
import GoogleMap from 'google-map-react';
import { HiOutlineLocationMarker } from 'react-icons/hi';
import { useCallback, useEffect, useState } from 'react';
const MapMarker = ({ lat,lng, text }) => {
const greatPlaceStyle = {
position: 'absolute',
transform: 'translate(-50%, -50%)'
}
}
const MapComponent = () => {
const path = [{ lat: 30.0444, lng: 31.2357 }, { lat: 30.2001, lng: 29.9187 }]
}
export default MapComponent;
The text was updated successfully, but these errors were encountered: