question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Marker showed twice

See original GitHub issue

After 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;

Captura de Pantalla 2020-06-24 a la(s) 11 50 33

Note,that i dragged the marker just to show the issue

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
JustFly1984commented, Aug 11, 2020

@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.

1reaction
JustFly1984commented, Aug 13, 2020

@shivamjjha I do not support this library. It is not maintained more than 3 years. Please consider to switch to my new version.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found