mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-11-15 07:07:07 +00:00
progress with layer settings
This commit is contained in:
1 parent
35b0adc7e5
commit
b3d016e2af
10 files changed
+272
-145
No files matched your search
@@ -8,15 +8,11 @@
|
||||
let container: HTMLDivElement | null = null;
|
||||
|
||||
$: if ($map && container) {
|
||||
$map.on('load', () => {
|
||||
if ($map && container) {
|
||||
if (position.includes('right')) container.classList.add('float-right');
|
||||
else container.classList.add('float-left');
|
||||
container.classList.remove('hidden');
|
||||
let control = new CustomControl(container);
|
||||
$map.addControl(control, position);
|
||||
}
|
||||
});
|
||||
if (position.includes('right')) container.classList.add('float-right');
|
||||
else container.classList.add('float-left');
|
||||
container.classList.remove('hidden');
|
||||
let control = new CustomControl(container);
|
||||
$map.addControl(control, position);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user