forked from qwerty/tupali
collapsa la barra lateral por defecto en pantallas mas pequeñas que 1024 px
This commit is contained in:
parent
2acb7c56e7
commit
7a5dc473e1
16
mapero.php
16
mapero.php
@ -146,8 +146,9 @@ $ids = json_decode($otro_json[0]);
|
|||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body onload="">
|
||||||
|
|
||||||
<!-- optionally define the sidebar content via HTML markup -->
|
<!-- optionally define the sidebar content via HTML markup -->
|
||||||
<div id="sidebar" class="leaflet-sidebar collapsed">
|
<div id="sidebar" class="leaflet-sidebar collapsed">
|
||||||
@ -270,11 +271,12 @@ function openMarkerPopup(e){
|
|||||||
|
|
||||||
sidebar.on('content', function (ev) {
|
sidebar.on('content', function (ev) {
|
||||||
switch (ev.id) {
|
switch (ev.id) {
|
||||||
|
|
||||||
case 'autopan':
|
case 'autopan':
|
||||||
sidebar.options.autopan = true;
|
sidebar.options.autopan = true;
|
||||||
break;
|
break;
|
||||||
default:
|
default:sidebar.options.autopan = true;
|
||||||
sidebar.options.autopan = true;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -283,5 +285,13 @@ function openMarkerPopup(e){
|
|||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
<script language="JavaScript">
|
||||||
|
if (screen.width<1024)
|
||||||
|
//codigo resolución pequeña
|
||||||
|
sidebar.close();
|
||||||
|
else
|
||||||
|
|
||||||
|
sidebar.open();
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
2
milfs
2
milfs
@ -1 +1 @@
|
|||||||
Subproject commit 7fa0c78fd578add255fcf6776c280516f9483ad1
|
Subproject commit 73beb9f1b77afc07e84d85830a1b5442717856fb
|
Loading…
Reference in New Issue
Block a user