Skip to content

Help FullScreen Control Map #1

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

Open
HauHetCo opened this issue Feb 22, 2025 · 0 comments
Open

Help FullScreen Control Map #1

HauHetCo opened this issue Feb 22, 2025 · 0 comments

Comments

@HauHetCo
Copy link
Owner

HauHetCo commented Feb 22, 2025

If anyone can help us pass the variable for FullScreen Control Map along with the icon to the map,

please help.

Thank You!

I have tried this and it doesn't work.

index.php

` <link rel="stylesheet" href="https://unpkg.com/leaflet.fullscreen@2.0.0/Control.FullScreen.css"

<script src="https://unpkg.com/leaflet.fullscreen@2.0.0/Control.FullScreen.js"></script>`

logic.js

// Create our map, giving it the streetmap and earthquakes layers to display on load. let myMap = L.map("map", { center: [53.0000, 9.0050], zoom: 4, layers: [topo, earthquakes, tectonicPlates] , fullscreenControl: true, // Enable fullscreen control fullscreenControlOptions: { position: 'topleft' // Position of the fullscreen button } });

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

1 participant