Skip to main content

All Questions

Tagged with
0 votes
0 answers
12 views

how to push React Leaflet's attribution and map controls to the back [duplicate]

what i'm trying to do the user sees a map, built in React Leaflet / Leaflet.JS. The user can then click a CTA button that pops up a modal. The modal should be the "top layer" of the screen, ...
henrylin03's user avatar
0 votes
1 answer
106 views

React Leaflet Material UI divIcon not styled

In React Leaflet, I am trying to use divIcon to render a custom Material UI marker that takes in a background color prop. However, when the marker is used in leaflet, the background style is not ...
pomipiwimo's user avatar
0 votes
0 answers
13 views

How to dynamically resize Leaflet CRS.Simple map based on viewport while maintaining standardized coordinates? [duplicate]

I'm using Leaflet to render a static image as a map. For the sake of example, let's say the image is 700px x 700px. To create the map, I do the following: map.current = L.map("map", { ...
GMoney's user avatar
  • 43
0 votes
1 answer
276 views

Leaflet rendering issue - map overflows

I have created a repo to reproduce the issue. I use Leaflet in React.js. The issue is that Leaflet map overflows in a mobile view and Navbar is not visible. It happens only when user logs in and is ...
Matt's user avatar
  • 8,733
0 votes
1 answer
235 views

Rotating and scaling an image to match reference points on a map in Leaflet

I'm implementing a feature where users can overlay an image onto a map. The idea is for users to select two reference points on the map and two on the image (but using map coordinates i receive). ...
Malxruxes's user avatar
0 votes
0 answers
126 views

React-leaflet with animated ImageOverlay misbehaving on zoom/pan actions

I'm attempting to use react-leaflet and ImageOverlay with CSS animation to create the appearance of clouds floating over the base image. At the default zoom level, all is good. The animation works, ...
Brandon Macer's user avatar
0 votes
1 answer
153 views

How can I add a switch to leaflet map react?

There is a problem with customizing a button and put it at top right of a Map Container. here is my reactjs code for Map box. <MapContainer style={{width:"32vw", height:"32vh&...
mirOOxi's user avatar
  • 25
0 votes
1 answer
174 views

Fixing Popup Leaflet on the left side

I need to fix the Popup to the left of the map, but when moving the map, the Popup does not adhere to the left edge I entered position: fixed in styling and everything is fine when zooming, but when ...
Курманкулов Белек's user avatar
0 votes
1 answer
326 views

add div to map leaflet reactjs

Good morning I would like to add a block div on my leaflet card with text in the div Reactjs. but it does not show on the map. It is displayed under the map, I tried with z-index but I did not ...
mimia's user avatar
  • 13
0 votes
0 answers
365 views

Marker position on the map Leaflet

I have a custom map created using the Leaflet library. And also the Marker component. When I place a marker with a value of 100 on the Y-axis, the marker is at the top of the map, but when I place a ...
Dmitriy's user avatar
  • 35
2 votes
2 answers
2k views

Fit the map view of an Image Overlay to the size of the container Leaflet

I am using React Leaflet to create a custom map. The card (Image Overlay) is currently being rendered, but it does not fill the container in which the card is placed. The size of the container is set ...
Dmitriy's user avatar
  • 35
2 votes
0 answers
711 views

how to apply different styles to react leaftlet map based on state

I want to apply these certain styles to my react leaflet map when the user clicks a button to signal that they want a dark themed map or a light themed one but I am not entirely sure how to go about ...
program.exe's user avatar
0 votes
2 answers
939 views

Changing react-leaflet map width with button click

I am working on a map with react-leaflet. I placed a button on the map that will ideally open a menu on the left side of the map. The way I want to open up the menu is by changing the width of the map ...
etmarkwalter's user avatar
0 votes
1 answer
64 views

Why does when I click on the map I get the map bigger using Chrome?

I am working with leaflet and when I click on the map, the map is bigger with the Chrome browser I don't know why. Here is my code : import "./styles.css"; import { MapContainer, TileLayer, ...
Peter's user avatar
  • 1
0 votes
1 answer
500 views

How can I do to avoid to make hidden the navbar?

I am working on a project using React, Leaflet, and Tailwind, and I have the following problem: This is a preview of my project: My project But when I click on the map I get this: My problem I don't ...
user_0546's user avatar

15 30 50 per page