JaWeilBaum / pyqtlet2

pyqtlet2 extends pyqtlet which initially brought Leaflet maps to PyQt5 and PySide6.
Other
37 stars 19 forks source link

Map.js:1092 Uncaught Error: Map container is already initialized. #37

Closed Sidra1111 closed 1 year ago

Sidra1111 commented 2 years ago

Getting error in the following code .tried everything to resolve couldnt figure it out. Error: Map.js:1092 Uncaught Error: Map container is already initialized. import React, { Component } from "react"; import { MapContainer, TileLayer, Marker, Popup } from "react-leaflet"; import { Card, Row, Col, CardHeader, CardBody, Badge } from "reactstrap";

class Map extends Component {

render() { return (

Open Street Map

A pretty CSS3 popup.
Easily customizable.
);

} }

export default Map;

JaWeilBaum commented 1 year ago

Hey @Sidra1111 I could you provide more information? There is to little information for me to deal with this issue.

Sidra1111 commented 1 year ago

Couldn't implement map using map container asvit always give me error that map container is already initialized though i haven't used it already. Somehow i managed to implement map without using map container

JaWeilBaum commented 1 year ago

Is the example in the readme, behaving the same for you, or is it working? The errors in regards to being already initialized, are sometimes a bit misleading.