2014-01-08 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_gis.php: fixed with a dirty hack the bug about
	the google maps with own old version of openlayer.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9295 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2014-01-08 15:11:15 +00:00
parent fbe3c86dd4
commit c57fc72220
2 changed files with 29 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-01-08 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: fixed with a dirty hack the bug about
the google maps with own old version of openlayer.
2014-01-07 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/planned_downtime.list.php: fixed the manual stop

View File

@ -116,7 +116,6 @@ function gis_print_map($idDiv, $iniZoom, $latCenter, $lonCenter, $baselayers, $c
break;
case 'Gmap':
echo "baselayer['gmap_type'] = '" . $baselayer['gmap_type'] . "';";
echo "controlsList = [];";
break;
}
@ -127,6 +126,30 @@ function gis_print_map($idDiv, $iniZoom, $latCenter, $lonCenter, $baselayers, $c
baselayerList, controlsList)";
echo "</script>";
?>
<script type="text/javascript">
$(document).ready(function() {
setInterval(
function() {
$("img")
.filter(function() { return this.src.match(/mapcnt3/);})
.css('display', 'none');
$("img")
.filter(function() { return this.src.match(/cb_scout2/);})
.css('display', 'none');
$(".gm-style-mtc").css('display', 'none');
}
,3000);
});
</script>
<?php
}
function gis_make_layer($name, $visible = true, $dot = null, $idLayer = null, $public_console = 0, $id_map = 0) {