Marker showed twice
See original GitHub issueAfter following the documentation im getting a weird behavior, which the map is rendering two markers, and the map has only one marker
import React from 'react';
import {
withScriptjs,
withGoogleMap,
GoogleMap,
Marker,
} from 'react-google-maps';
import { config } from '../settings';
const GoogleMaps = withScriptjs(
withGoogleMap(props => (
<GoogleMap defaultZoom={8} defaultCenter={{ lat: -34.397, lng: 150.644 }}>
{props.isMarkerShown && (
<Marker draggable position={{ lat: -34.397, lng: 150.644 }} />
)}
</GoogleMap>
))
);
const Map = () => {
return (
<GoogleMaps
googleMapURL={`https://maps.googleapis.com/maps/api/js?key=${config.GOOGLE_MAPS_API_KEY}&v=3.exp&libraries=geometry,drawing,places`}
loadingElement={<div style={{ height: `100%` }} />}
containerElement={<div style={{ height: `300px` }} />}
mapElement={<div style={{ height: `100%` }} />}
isMarkerShown
/>
);
};
export default Map;
Note,that i dragged the marker just to show the issue
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Matplotlib plot legend shows markers twice - Stack Overflow
The legend in my plot shows the marker icon twice in the legend. Code output. The code that produced this plot is given...
Read more >MARKER FLIP TWICE IN A ROW!!! - YouTube
Ok guys I still can't believe that I did the marker flip twice in a row! I did this 8 days ago and...
Read more >Double Marker Test: How It's Done and What Results Mean
The double marker test is part of a more comprehensive screening called the ... Its results show a probability of chromosomal abnormalities.
Read more >What to do if my double marker test comes back abnormal?
Let me clarify that double marker is only a screening test. It is not a confirmatory test. Double markers are not repeated if...
Read more >Tumor Marker Tests | Cancer.Net
Check the progress of treatment. Changes in your tumor marker levels can show how well the treatment is working. Predict the chance of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@shivamjjha I have no contact with developer of this package, nor I have ability to change code. That is downside of open source software. That is why I had to fork this lib 2 years ago.
@shivamjjha I do not support this library. It is not maintained more than 3 years. Please consider to switch to my new version.