I am using leaflet with react and I added a way to use the full screen but I have no icons on the button ... How can I do to add a button ?
Here is my code :
import React, { Component } from "react";
import ReactDOM from "react-dom";
import { Map, TileLayer, Marker, Popup } from "react-leaflet";
import "./styles.css";
import FullscreenControl from "react-leaflet-fullscreen";
const App = () => {
return (
<div>
<Map center={[51.505, -0.091]} zoom={13}>
<TileLayer
attribution='&copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
url="https://{s}.tile.osm.org/{z}/{x}/{y}.png"
/>
<Marker position={[51.505, -0.091]}>
<Popup>
A pretty CSS3 popup. <br /> Easily customizable.
</Popup>
</Marker>
<FullscreenControl position="topright" />
</Map>
</div>
);
};
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);
Also you can see my code there : My code
