Skip to content
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

marker not shown in nextjs 12 & react 18 #34

Open
shaohlalnyd opened this issue Jan 24, 2023 · 2 comments
Open

marker not shown in nextjs 12 & react 18 #34

shaohlalnyd opened this issue Jan 24, 2023 · 2 comments

Comments

@shaohlalnyd
Copy link

image

this is my code and marker not shown in the map
my react version is 18 and next version is 12
please help me

@Nicky-Sa
Copy link

Nicky-Sa commented Feb 17, 2023

Hi, I had the same problem, but it seems that the pin shows up when you build and start the project. but there is no way to see the pin in dev mode!
you also need to import your map component in your page like this:
const Map = dynamic( () => import("@/Components/Map/Map.jsx"), { loading: () => <p>درحال بارگذاری نقشه...</p>, ssr: false, }, );

@arazsalmasi
Copy link

Hi, i use dynamic import for my map componnet and map rendered and show but marker not shown in nextjs 12 & react 18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants