shell bypass 403
/* GOOGLE MAPS */
var map; // Variable para el mapa
var markersArray = []; // Variable para controlar los marcadores
var latlngArray = []; // Variable para controlar las coordenadas de todos los marcadores
var myInfoBoxOptions = {
content: '',
alignBottom: true,
disableAutoPan: false,
maxWidth: 220,
pixelOffset: new google.maps.Size(-110, -25),
zIndex: null,
closeBoxMargin: '10px',
isHidden: false,
pane: 'floatPane',
enableEventPropagation: true
};
var ib = new InfoBox(myInfoBoxOptions);
var shape = {coord: [40, 0, 40, 1, 40, 2, 40, 3, 40, 4, 40, 5, 40, 6, 40, 7, 40, 8, 40, 9, 40, 10, 40, 11, 40, 12, 40, 13, 40, 14, 40, 15, 40, 16, 40, 17, 40, 18, 40, 19, 40, 20, 40, 21, 40, 22, 40, 23, 40, 24, 40, 25, 40, 26, 40, 27, 40, 28, 40, 29, 40, 30, 40, 31, 40, 32, 40, 33, 40, 34, 40, 35, 40, 36, 40, 37, 40, 38, 40, 39, 25, 40, 24, 41, 23, 42, 22, 43, 21, 44, 21, 45, 20, 45, 19, 44, 18, 43, 18, 42, 17, 41, 16, 40, 0, 39, 0, 38, 0, 37, 0, 36, 0, 35, 0, 34, 0, 33, 0, 32, 0, 31, 0, 30, 0, 29, 0, 28, 0, 27, 0, 26, 0, 25, 0, 24, 0, 23, 0, 22, 0, 21, 0, 20, 0, 19, 0, 18, 0, 17, 0, 16, 0, 15, 0, 14, 0, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 0, 5, 0, 4, 0, 3, 0, 2, 0, 1, 0, 0, 40, 0], type: 'poly'};
/* MUESTRA TODOS LOS MARCADORES DEL MAPA */
function showMarkers() {
if (markersArray) {
for (i = 0; i < markersArray.length; i++) {
markersArray[i].setMap(map);
}
}
}
/* ELIMINA TODOS LOS MARCADORES DEL MAPA */
function deleteMarkers() {
if (markersArray) {
for (i = 0; i < markersArray.length; i++) {
markersArray[i].setMap(null);
}
markersArray.length = 0;
latlngArray.length = 0;
}
}
/* OBTIENE EL MEJOR ZOOM Y COORDENADAS PARA CENTRAR EL MAPA*/
function zoomCenterMap() {
var latlngbounds = new google.maps.LatLngBounds();
for (i = 0; i < latlngArray.length; i++) {
latlngbounds.extend(latlngArray[i]);
}
map.setCenter(latlngbounds.getCenter());
if (latlngArray.length > 1)
map.fitBounds(latlngbounds);
}
/* CARGAR MAPA PRINCIPAL */
function cargar_mapa() {
deleteMarkers();
var latlng = new google.maps.LatLng(43.3608151,-3.9182728,11);
var myOptions = {
zoom: 11,
scrollwheel: false,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
styles: [
{"featureType": "water", "stylers": [{"visibility": "on"}, {"color": "#b5cbe4"}]},
{"featureType": "landscape", "stylers": [{"color": "#efefef"}]},
{"featureType": "road.highway", "elementType": "geometry", "stylers": [{"color": "#83a5b0"}]},
{"featureType": "road.arterial", "elementType": "geometry", "stylers": [{"color": "#bdcdd3"}]},
{"featureType": "road.local", "elementType": "geometry", "stylers": [{"color": "#ffffff"}]},
{"featureType": "poi.park", "elementType": "geometry", "stylers": [{"color": "#e3eed3"}]},
{"featureType": "administrative", "stylers": [{"visibility": "on"}, {"lightness": 33}]},
{"featureType": "road"},
{"featureType": "poi.park", "elementType": "labels", "stylers": [{"visibility": "on"}, {"lightness": 20}]},
{"featureType": "road", "stylers": [{"lightness": 20}]}
]
};
map = new google.maps.Map(document.getElementById('gmaps'), myOptions);
// map.setZoom(80);
if (resultados.totales > 0) {
$.each(resultados.items, function(i, item) { // Proceso el resultado de busqueda para crear los marcadores
if (item.latitud !== 0 && item.longitud !== 0) {
createMarker(item);
}
});
//zoomCenterMap(); // Centramos y fijamos el mejor zoom para el mapa
}
}