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.

Can't get `react-annotations` to show over a map

See original GitHub issue

Hi, love react-simple-maps!

I have a problem which I cannot solve - I’ve checked the web for answers but cannot find any. Hence my logging of an issue.

I have a world map and I want to overlay annotations from react-annotations but they just don’t show up. Do you have an example of this working?

Thanks!

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zimrickcommented, Oct 17, 2019

Hi @abax1, Yeah, we didn’t get around to add a proper example of how to use react-annotation with react-simple-maps yet. The best way to go about this is to put the annotation component inside a Marker component. That way you can place it geographically.

Hope this helps.

0reactions
abax1commented, Oct 20, 2019

Usage would be:

<Marker coordinates={[-120.8958, 38.8375]}>
          <CirclePulse color="red" pulseColor="yellow" />
          <MyAnnotation
            title={"You are Here"}
            label={"This is your node, N. California, Lat: -120.8958, Long: 38.8375"}
            color={"#ffffff"}
            wrap={60}
          />
</Marker>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't see MapBox React Native GL annotations - Stack Overflow
I have set the map center to the same position as the first annotation so it should definitely be in view. All other...
Read more >
Getting started with React Maps component - Syncfusion
This section explains you the steps required to create a map and demonstrate the basic usage of the maps component. You can explore...
Read more >
Lists and Keys - React
Lists and Keys ... First, let's review how you transform lists in JavaScript. Given the code below, we use the map() function to...
Read more >
Controls - Storybook - JS.ORG
Auto-generate controls based on React/Vue/Angular/etc. components. ... See the documentation about customizing controls with argTypes annotation for more ...
Read more >
Use React and Spring Boot to Build a Simple CRUD App
It's great that you can see your Spring Boot API's data in your React app, but it's no fun if you can't edit...
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