3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
//1.- Calculo el vertice de referencia del punto //Defino variables $latslg="49.13333"; $lat=$latslg; $lonslg="9.21641"; $lon=$lonslg; $dotlat="0.00180"; $dotlon="0.00275"; // Delta del punto versus referencia SLG $latdelta1=$lat-$latslg; $londelta1=$lon-$lonslg; // Nombre de dots $nrdotslat=($latdelta1/$dotlat); $nrdotslon=($londelta1/$dotlon); $nrdotslat=floor($latdelta1/$dotlat); $nrdotslon=floor($londelta1/$dotlon); // Vertice del dot marcado $latnew=$latslg+($nrdotslat*$dotlat); $lonnew=$lonslg+($nrdotslon*$dotlon); //De arriba,izquierda a abajo,derecha hay P1, P2, P3… //Los marcados con * son lo que se ve. El resto son referencias para los rectangulos //01, 02, 03, 04, 05, 06,07 // COMPANYIA //08,*09,*10,*11,*12,*13,14 //15,*16,*17,*18,*19,*21,22 //23,*24,*25,*26,*27,*28,29 //El centro es el 18 //El centro de referencia es el 17 $p18lat=$latnew; $p18lon=$lonnew; $p1lat=$p18lat+2*$dotlat; $p1lon=$p18lon-3*$dotlon; $p2lat=$p18lat+2*$dotlat; $p2lon=$p18lon-2*$dotlon; $p3lat=$p18lat+2*$dotlat; $p3lon=$p18lon-1*$dotlon; $p4lat=$p18lat+2*$dotlat; $p4lon=$p18lon; $p5lat=$p18lat+2*$dotlat; $p5lon=$p18lon+1*$dotlon; $p6lat=$p18lat+2*$dotlat; $p6lon=$p18lon+2*$dotlon; $p7lat=$p18lat+2*$dotlat; $p7lon=$p18lon+3*$dotlon; $p8lat=$p18lat+1*$dotlat; $p8lon=$p18lon-3*$dotlon; $p9lat=$p18lat+1*$dotlat; $p9lon=$p18lon-2*$dotlon; $p10lat=$p18lat+1*$dotlat; $p10lon=$p18lon-1*$dotlon; $p11lat=$p18lat+1*$dotlat; $p11lon=$p18lon; $p12lat=$p18lat+1*$dotlat; $p12lon=$p18lon+1*$dotlon; $p13lat=$p18lat+1*$dotlat; $p13lon=$p18lon+2*$dotlon; $p14lat=$p18lat+1*$dotlat; $p14lon=$p18lon+3*$dotlon; $p15lat=$p18lat; $p15lon=$p18lon-3*$dotlon; $p16lat=$p18lat; $p16lon=$p18lon-2*$dotlon; $p17lat=$p18lat; $p17lon=$p18lon-1*$dotlon; $p19lat=$p18lat; $p19lon=$p18lon+1*$dotlon; $p20lat=$p18lat; $p20lon=$p18lon+2*$dotlon; $p21lat=$p18lat; $p21lon=$p18lon+3*$dotlon; $p22lat=$p18lat-1*$dotlat; $p22lon=$p18lon-3*$dotlon; $p23lat=$p18lat-1*$dotlat; $p23lon=$p18lon-2*$dotlon; $p24lat=$p18lat-1*$dotlat; $p24lon=$p18lon-1*$dotlon; $p25lat=$p18lat-1*$dotlat; $p25lon=$p18lon; $p26lat=$p18lat-1*$dotlat; $p26lon=$p18lon+1*$dotlon; $p27lat=$p18lat-1*$dotlat; $p27lon=$p18lon+2*$dotlon; $p28lat=$p18lat-1*$dotlat; $p28lon=$p18lon+3*$dotlon; //P100 es el centro del mapa $p100lat=$p18lat+($dotlat/2); $p100lon=$p18lon+($dotlon/2); $p9existent=0; $p9relleno="#FFFFFF"; $p9borde="#FFFFFF"; $p9rellenoopa=0; $p10existent=0; $p10relleno="#FFFFFF"; $p10borde="#FFFFFF"; $p10rellenoopa=0; $p11existent=0; $p11relleno="#FFFFFF"; $p11borde="#FFFFFF"; $p11rellenoopa=0; $p12existent=0; $p12relleno="#FFFFFF"; $p12borde="#FFFFFF"; $p12rellenoopa=0; $p13existent=0; $p13relleno="#FFFFFF"; $p13borde="#FFFFFF"; $p13rellenoopa=0; $p16existent=0; $p16relleno="#FFFFFF"; $p16borde="#FFFFFF"; $p16rellenoopa=0; $p17existent=0; $p17relleno="#FFFFFF"; $p17borde="#FFFFFF"; $p17rellenoopa=0; $p18existent=0; $p18relleno="#FFFFFF"; $p18borde="#FFFFFF"; $p18rellenoopa=0; $p19existent=0; $p19relleno="#FFFFFF"; $p19borde="#FFFFFF"; $p19rellenoopa=0; $p20existent=0; $p20relleno="#FFFFFF"; $p20borde="#FFFFFF"; $p20rellenoopa=0; $p23existent=0; $p23relleno="#FFFFFF"; $p23borde="#FFFFFF"; $p23rellenoopa=0; $p24existent=0; $p24relleno="#FFFFFF"; $p24borde="#FFFFFF"; $p24rellenoopa=0; $p25existent=0; $p25relleno="#FFFFFF"; $p25borde="#FFFFFF"; $p25rellenoopa=0; $p26existent=0; $p26relleno="#FFFFFF"; $p26borde="#FFFFFF"; $p26rellenoopa=0; $p27existent=0; $p27relleno="#FFFFFF"; $p27borde="#FFFFFF"; $p27rellenoopa=0; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="yes" name="apple-mobile-web-app-capable" /> <meta content="index,follow" name="robots" /> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <link href="pics/homescreen2.gif" rel="apple-touch-icon" /> <meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport" /> <link href="css/style.css" rel="stylesheet" media="screen" type="text/css" /> <script src="javascript/functions.js" type="text/javascript"></script> <title>Pin a Dot</title> <link href="pics/startup2.png" rel="apple-touch-startup-image" /> <meta content="Pin a Dot" name="keywords" /> <meta content="Pin a Dot" name="description" /> <script src="https://maps.googleapis.com/maps/api/js?key= AIzaSyDpfb08FfOGiB3Znuoex55yvu1wQrR_4Pg&sensor=false"></script> <script src="//google-maps-utility-library-v3.googlecode.com/svn/trunk/geolocationmarker/src/geolocationmarker-compiled.js"></script> <script type="text/javascript"> var citymap = {}; /* citymap['P9'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p9lat; ?>, <?php echo $p9lon; ?>),new google.maps.LatLng(<?php echo $p3lat; ?>, <?php echo $p3lon; ?>)), colorinterior: "<?php echo $p9relleno; ?>", colorborde: "<?php echo $p9borde; ?>", transpinterior: "<?php echo $p9rellenoopa; ?>", }; citymap['P10'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p10lat; ?>, <?php echo $p10lon; ?>),new google.maps.LatLng(<?php echo $p4lat; ?>, <?php echo $p4lon; ?>)), colorinterior: "<?php echo $p10relleno; ?>", colorborde: "<?php echo $p10borde; ?>", transpinterior: "<?php echo $p10rellenoopa; ?>", }; citymap['P11'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p11lat; ?>, <?php echo $p11lon; ?>),new google.maps.LatLng(<?php echo $p5lat; ?>, <?php echo $p5lon; ?>)), colorinterior: "<?php echo $p11relleno; ?>", colorborde: "<?php echo $p11borde; ?>", transpinterior: "<?php echo $p11rellenoopa; ?>", }; citymap['P12'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p12lat; ?>, <?php echo $p12lon; ?>),new google.maps.LatLng(<?php echo $p6lat; ?>, <?php echo $p6lon; ?>)), colorinterior: "<?php echo $p12relleno; ?>", colorborde: "<?php echo $p12borde; ?>", transpinterior: "<?php echo $p12rellenoopa; ?>", }; citymap['P13'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p13lat; ?>, <?php echo $p13lon; ?>),new google.maps.LatLng(<?php echo $p7lat; ?>, <?php echo $p7lon; ?>)), colorinterior: "<?php echo $p13relleno; ?>", colorborde: "<?php echo $p13borde; ?>", transpinterior: "<?php echo $p13rellenoopa; ?>", }; citymap['P16'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p16lat; ?>, <?php echo $p16lon; ?>),new google.maps.LatLng(<?php echo $p10lat; ?>, <?php echo $p10lon; ?>)), colorinterior: "<?php echo $p16relleno; ?>", colorborde: "<?php echo $p16borde; ?>", transpinterior: "<?php echo $p16rellenoopa; ?>", }; citymap['P17'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p17lat; ?>, <?php echo $p17lon; ?>),new google.maps.LatLng(<?php echo $p11lat; ?>, <?php echo $p11lon; ?>)), colorinterior: "<?php echo $p17relleno; ?>", colorborde: "<?php echo $p17borde; ?>", transpinterior: "<?php echo $p17rellenoopa; ?>", }; citymap['P18'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p18lat; ?>, <?php echo $p18lon; ?>),new google.maps.LatLng(<?php echo $p12lat; ?>, <?php echo $p12lon; ?>)), colorinterior: "<?php echo $p18relleno; ?>", colorborde: "<?php echo $p18borde; ?>", transpinterior: "<?php echo $p18rellenoopa; ?>", }; citymap['P19'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p19lat; ?>, <?php echo $p19lon; ?>),new google.maps.LatLng(<?php echo $p13lat; ?>, <?php echo $p13lon; ?>)), colorinterior: "<?php echo $p19relleno; ?>", colorborde: "<?php echo $p19borde; ?>", transpinterior: "<?php echo $p19rellenoopa; ?>" }; citymap['P20'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p20lat; ?>, <?php echo $p20lon; ?>),new google.maps.LatLng(<?php echo $p14lat; ?>, <?php echo $p14lon; ?>)), colorinterior: "<?php echo $p20relleno; ?>", colorborde: "<?php echo $p20borde; ?>", transpinterior: "<?php echo $p20rellenoopa; ?>" }; */ citymap['P23'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p23lat; ?>, <?php echo $p23lon; ?>),new google.maps.LatLng(<?php echo $p17lat; ?>, <?php echo $p17lon; ?>)), bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p20lat; ?>, <?php echo $p20lon; ?>),new google.maps.LatLng(<?php echo $p14lat; ?>, <?php echo $p14lon; ?>)), colorinterior: "<?php echo $p23relleno; ?>", colorborde: "<?php echo $p23borde; ?>", transpinterior: "<?php echo $p23rellenoopa; ?>" }; citymap['P24'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p24lat; ?>, <?php echo $p24lon; ?>),new google.maps.LatLng(<?php echo $p18lat; ?>, <?php echo $p18lon; ?>)), colorinterior: "<?php echo $p24relleno; ?>", colorborde: "<?php echo $p24borde; ?>", transpinterior: "<?php echo $p24rellenoopa; ?>" }; citymap['P25'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p25lat; ?>, <?php echo $p25lon; ?>),new google.maps.LatLng(<?php echo $p19lat; ?>, <?php echo $p19lon; ?>)), colorinterior: "<?php echo $p25relleno; ?>", colorborde: "<?php echo $p25borde; ?>", transpinterior: "<?php echo $p25rellenoopa; ?>" }; citymap['P26'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p26lat; ?>, <?php echo $p26lon; ?>),new google.maps.LatLng(<?php echo $p20lat; ?>, <?php echo $p20lon; ?>)), colorinterior: "<?php echo $p26relleno; ?>", colorborde: "<?php echo $p26borde; ?>", transpinterior: "<?php echo $p26rellenoopa; ?>" }; citymap['P27'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng(<?php echo $p27lat; ?>, <?php echo $p27lon; ?>),new google.maps.LatLng(<?php echo $p21lat; ?>, <?php echo $p21lon; ?>)), colorinterior: "<?php echo $p27relleno; ?>", colorborde: "<?php echo $p27borde; ?>", transpinterior: "<?php echo $p27rellenoopa; ?>" }; var cityCircle, GeoMarker; function initialize() { // Create the map. var mapOptions = { zoom: 15, disableDefaultUI:true, draggable: false, zoomControl: false, scrollwheel: false, center: new google.maps.LatLng(<?php echo $lat; ?>,<?php echo $lon; ?>), mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById('map'), mapOptions); var infoWindow = new google.maps.InfoWindow; var onMarkerClick = function() { var marker = this; var contenido = marker.contenido; infoWindow.setContent(contenido); infoWindow.open(map, marker); }; google.maps.event.addListener(map, 'click', function() { infoWindow.close(); }); GeoMarker = new GeolocationMarker(); GeoMarker.setCircleOptions({fillColor: '#808080'}); google.maps.event.addListenerOnce(GeoMarker, 'position_changed', function() { }); google.maps.event.addListener(GeoMarker, 'geolocation_error', function(e) { alert('There was an error obtaining your position. Message: ' + e.message); }); // Construct the circle for each value in citymap. // Note: We scale the population by a factor of 20. for (var city in citymap) { var populationOptions = { // strokeColor: '#FF0000', strokeOpacity: 0.8, strokeWeight: 1, map: map, contenido: citymap[city].colorborde, strokeColor: citymap[city].colorborde, fillColor: citymap[city].colorinterior, fillOpacity: citymap[city].transpinterior, bounds: citymap[city].bounds }; // Add the circle for this city to the map. cityCircle = new google.maps.Rectangle(populationOptions); google.maps.event.addListener(cityCircle, 'click', onMarkerClick); } GeoMarker.setMap(map); // google.maps.event.addListener(cityCircle, 'click', onMarkerClick); // google.maps.event.addListener(marker2, 'click', onMarkerClick); // google.maps.event.addListener(marker3, 'click', onMarkerClick); } google.maps.event.addDomListener(window, 'load', initialize); </script> </head> <body> <div id="topbar" class="transparent"> <div id="leftnav"> <a href="home.php"><img alt="home" src="images/home.png" /></a> </div> <div id="rightnav" onclick="getLocation(9)"> <a href="#"><img src="thumbs/marker_green.png" height="14"></img>&nbsp;<?php echo $dots; ?>/<?php echo $dotslimit; ?></a> </div> </div> <div id="content"> <ul class="pageitem"> <li class="mapbox"> <div id="map" style="height: 200px"> </div> </li> </ul> <ul class="pageitem"> <li class="menu" onclick="getLocation(9)"> <a href="#"><img alt="PinaDot Next Match" src="thumbs/ios7_register.png" /> <span class="name" >Refresh</span> <span class="arrow"></span> </a> </li> <li class="menu" onclick="getLocation2(9)"> <a href="dotinfo.php?lat=<?php echo $lat; ?>&lon=<?php echo $lon; ?>"><img alt="PinaDot Next Match" src="thumbs/ios7_register.png" /> <span class="name" >PinaDot</span> <span class="arrow"></span> </a> </li> </ul> </div> <div id="footer"> <a class="noeffect" href="http://www.pinadot.com">PinaDot.com 2014</a> </div>
Output for 5.3.0 - 7.1.0
//1.- Calculo el vertice de referencia del punto //Defino variables $latslg="49.13333"; $lat=$latslg; $lonslg="9.21641"; $lon=$lonslg; $dotlat="0.00180"; $dotlon="0.00275"; // Delta del punto versus referencia SLG $latdelta1=$lat-$latslg; $londelta1=$lon-$lonslg; // Nombre de dots $nrdotslat=($latdelta1/$dotlat); $nrdotslon=($londelta1/$dotlon); $nrdotslat=floor($latdelta1/$dotlat); $nrdotslon=floor($londelta1/$dotlon); // Vertice del dot marcado $latnew=$latslg+($nrdotslat*$dotlat); $lonnew=$lonslg+($nrdotslon*$dotlon); //De arriba,izquierda a abajo,derecha hay P1, P2, P3… //Los marcados con * son lo que se ve. El resto son referencias para los rectangulos //01, 02, 03, 04, 05, 06,07 // COMPANYIA //08,*09,*10,*11,*12,*13,14 //15,*16,*17,*18,*19,*21,22 //23,*24,*25,*26,*27,*28,29 //El centro es el 18 //El centro de referencia es el 17 $p18lat=$latnew; $p18lon=$lonnew; $p1lat=$p18lat+2*$dotlat; $p1lon=$p18lon-3*$dotlon; $p2lat=$p18lat+2*$dotlat; $p2lon=$p18lon-2*$dotlon; $p3lat=$p18lat+2*$dotlat; $p3lon=$p18lon-1*$dotlon; $p4lat=$p18lat+2*$dotlat; $p4lon=$p18lon; $p5lat=$p18lat+2*$dotlat; $p5lon=$p18lon+1*$dotlon; $p6lat=$p18lat+2*$dotlat; $p6lon=$p18lon+2*$dotlon; $p7lat=$p18lat+2*$dotlat; $p7lon=$p18lon+3*$dotlon; $p8lat=$p18lat+1*$dotlat; $p8lon=$p18lon-3*$dotlon; $p9lat=$p18lat+1*$dotlat; $p9lon=$p18lon-2*$dotlon; $p10lat=$p18lat+1*$dotlat; $p10lon=$p18lon-1*$dotlon; $p11lat=$p18lat+1*$dotlat; $p11lon=$p18lon; $p12lat=$p18lat+1*$dotlat; $p12lon=$p18lon+1*$dotlon; $p13lat=$p18lat+1*$dotlat; $p13lon=$p18lon+2*$dotlon; $p14lat=$p18lat+1*$dotlat; $p14lon=$p18lon+3*$dotlon; $p15lat=$p18lat; $p15lon=$p18lon-3*$dotlon; $p16lat=$p18lat; $p16lon=$p18lon-2*$dotlon; $p17lat=$p18lat; $p17lon=$p18lon-1*$dotlon; $p19lat=$p18lat; $p19lon=$p18lon+1*$dotlon; $p20lat=$p18lat; $p20lon=$p18lon+2*$dotlon; $p21lat=$p18lat; $p21lon=$p18lon+3*$dotlon; $p22lat=$p18lat-1*$dotlat; $p22lon=$p18lon-3*$dotlon; $p23lat=$p18lat-1*$dotlat; $p23lon=$p18lon-2*$dotlon; $p24lat=$p18lat-1*$dotlat; $p24lon=$p18lon-1*$dotlon; $p25lat=$p18lat-1*$dotlat; $p25lon=$p18lon; $p26lat=$p18lat-1*$dotlat; $p26lon=$p18lon+1*$dotlon; $p27lat=$p18lat-1*$dotlat; $p27lon=$p18lon+2*$dotlon; $p28lat=$p18lat-1*$dotlat; $p28lon=$p18lon+3*$dotlon; //P100 es el centro del mapa $p100lat=$p18lat+($dotlat/2); $p100lon=$p18lon+($dotlon/2); $p9existent=0; $p9relleno="#FFFFFF"; $p9borde="#FFFFFF"; $p9rellenoopa=0; $p10existent=0; $p10relleno="#FFFFFF"; $p10borde="#FFFFFF"; $p10rellenoopa=0; $p11existent=0; $p11relleno="#FFFFFF"; $p11borde="#FFFFFF"; $p11rellenoopa=0; $p12existent=0; $p12relleno="#FFFFFF"; $p12borde="#FFFFFF"; $p12rellenoopa=0; $p13existent=0; $p13relleno="#FFFFFF"; $p13borde="#FFFFFF"; $p13rellenoopa=0; $p16existent=0; $p16relleno="#FFFFFF"; $p16borde="#FFFFFF"; $p16rellenoopa=0; $p17existent=0; $p17relleno="#FFFFFF"; $p17borde="#FFFFFF"; $p17rellenoopa=0; $p18existent=0; $p18relleno="#FFFFFF"; $p18borde="#FFFFFF"; $p18rellenoopa=0; $p19existent=0; $p19relleno="#FFFFFF"; $p19borde="#FFFFFF"; $p19rellenoopa=0; $p20existent=0; $p20relleno="#FFFFFF"; $p20borde="#FFFFFF"; $p20rellenoopa=0; $p23existent=0; $p23relleno="#FFFFFF"; $p23borde="#FFFFFF"; $p23rellenoopa=0; $p24existent=0; $p24relleno="#FFFFFF"; $p24borde="#FFFFFF"; $p24rellenoopa=0; $p25existent=0; $p25relleno="#FFFFFF"; $p25borde="#FFFFFF"; $p25rellenoopa=0; $p26existent=0; $p26relleno="#FFFFFF"; $p26borde="#FFFFFF"; $p26rellenoopa=0; $p27existent=0; $p27relleno="#FFFFFF"; $p27borde="#FFFFFF"; $p27rellenoopa=0; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="yes" name="apple-mobile-web-app-capable" /> <meta content="index,follow" name="robots" /> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <link href="pics/homescreen2.gif" rel="apple-touch-icon" /> <meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport" /> <link href="css/style.css" rel="stylesheet" media="screen" type="text/css" /> <script src="javascript/functions.js" type="text/javascript"></script> <title>Pin a Dot</title> <link href="pics/startup2.png" rel="apple-touch-startup-image" /> <meta content="Pin a Dot" name="keywords" /> <meta content="Pin a Dot" name="description" /> <script src="https://maps.googleapis.com/maps/api/js?key= AIzaSyDpfb08FfOGiB3Znuoex55yvu1wQrR_4Pg&sensor=false"></script> <script src="//google-maps-utility-library-v3.googlecode.com/svn/trunk/geolocationmarker/src/geolocationmarker-compiled.js"></script> <script type="text/javascript"> var citymap = {}; /* citymap['P9'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p9lat in /in/N1dBe on line 142 , Notice: Undefined variable: p9lon in /in/N1dBe on line 142 ),new google.maps.LatLng( Notice: Undefined variable: p3lat in /in/N1dBe on line 142 , Notice: Undefined variable: p3lon in /in/N1dBe on line 142 )), colorinterior: " Notice: Undefined variable: p9relleno in /in/N1dBe on line 143 ", colorborde: " Notice: Undefined variable: p9borde in /in/N1dBe on line 144 ", transpinterior: " Notice: Undefined variable: p9rellenoopa in /in/N1dBe on line 145 ", }; citymap['P10'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p10lat in /in/N1dBe on line 149 , Notice: Undefined variable: p10lon in /in/N1dBe on line 149 ),new google.maps.LatLng( Notice: Undefined variable: p4lat in /in/N1dBe on line 149 , Notice: Undefined variable: p4lon in /in/N1dBe on line 149 )), colorinterior: " Notice: Undefined variable: p10relleno in /in/N1dBe on line 150 ", colorborde: " Notice: Undefined variable: p10borde in /in/N1dBe on line 151 ", transpinterior: " Notice: Undefined variable: p10rellenoopa in /in/N1dBe on line 152 ", }; citymap['P11'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p11lat in /in/N1dBe on line 155 , Notice: Undefined variable: p11lon in /in/N1dBe on line 155 ),new google.maps.LatLng( Notice: Undefined variable: p5lat in /in/N1dBe on line 155 , Notice: Undefined variable: p5lon in /in/N1dBe on line 155 )), colorinterior: " Notice: Undefined variable: p11relleno in /in/N1dBe on line 156 ", colorborde: " Notice: Undefined variable: p11borde in /in/N1dBe on line 157 ", transpinterior: " Notice: Undefined variable: p11rellenoopa in /in/N1dBe on line 158 ", }; citymap['P12'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p12lat in /in/N1dBe on line 161 , Notice: Undefined variable: p12lon in /in/N1dBe on line 161 ),new google.maps.LatLng( Notice: Undefined variable: p6lat in /in/N1dBe on line 161 , Notice: Undefined variable: p6lon in /in/N1dBe on line 161 )), colorinterior: " Notice: Undefined variable: p12relleno in /in/N1dBe on line 162 ", colorborde: " Notice: Undefined variable: p12borde in /in/N1dBe on line 163 ", transpinterior: " Notice: Undefined variable: p12rellenoopa in /in/N1dBe on line 164 ", }; citymap['P13'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p13lat in /in/N1dBe on line 167 , Notice: Undefined variable: p13lon in /in/N1dBe on line 167 ),new google.maps.LatLng( Notice: Undefined variable: p7lat in /in/N1dBe on line 167 , Notice: Undefined variable: p7lon in /in/N1dBe on line 167 )), colorinterior: " Notice: Undefined variable: p13relleno in /in/N1dBe on line 168 ", colorborde: " Notice: Undefined variable: p13borde in /in/N1dBe on line 169 ", transpinterior: " Notice: Undefined variable: p13rellenoopa in /in/N1dBe on line 170 ", }; citymap['P16'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p16lat in /in/N1dBe on line 174 , Notice: Undefined variable: p16lon in /in/N1dBe on line 174 ),new google.maps.LatLng( Notice: Undefined variable: p10lat in /in/N1dBe on line 174 , Notice: Undefined variable: p10lon in /in/N1dBe on line 174 )), colorinterior: " Notice: Undefined variable: p16relleno in /in/N1dBe on line 175 ", colorborde: " Notice: Undefined variable: p16borde in /in/N1dBe on line 176 ", transpinterior: " Notice: Undefined variable: p16rellenoopa in /in/N1dBe on line 177 ", }; citymap['P17'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p17lat in /in/N1dBe on line 180 , Notice: Undefined variable: p17lon in /in/N1dBe on line 180 ),new google.maps.LatLng( Notice: Undefined variable: p11lat in /in/N1dBe on line 180 , Notice: Undefined variable: p11lon in /in/N1dBe on line 180 )), colorinterior: " Notice: Undefined variable: p17relleno in /in/N1dBe on line 181 ", colorborde: " Notice: Undefined variable: p17borde in /in/N1dBe on line 182 ", transpinterior: " Notice: Undefined variable: p17rellenoopa in /in/N1dBe on line 183 ", }; citymap['P18'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p18lat in /in/N1dBe on line 186 , Notice: Undefined variable: p18lon in /in/N1dBe on line 186 ),new google.maps.LatLng( Notice: Undefined variable: p12lat in /in/N1dBe on line 186 , Notice: Undefined variable: p12lon in /in/N1dBe on line 186 )), colorinterior: " Notice: Undefined variable: p18relleno in /in/N1dBe on line 187 ", colorborde: " Notice: Undefined variable: p18borde in /in/N1dBe on line 188 ", transpinterior: " Notice: Undefined variable: p18rellenoopa in /in/N1dBe on line 189 ", }; citymap['P19'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p19lat in /in/N1dBe on line 192 , Notice: Undefined variable: p19lon in /in/N1dBe on line 192 ),new google.maps.LatLng( Notice: Undefined variable: p13lat in /in/N1dBe on line 192 , Notice: Undefined variable: p13lon in /in/N1dBe on line 192 )), colorinterior: " Notice: Undefined variable: p19relleno in /in/N1dBe on line 193 ", colorborde: " Notice: Undefined variable: p19borde in /in/N1dBe on line 194 ", transpinterior: " Notice: Undefined variable: p19rellenoopa in /in/N1dBe on line 195 " }; citymap['P20'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p20lat in /in/N1dBe on line 198 , Notice: Undefined variable: p20lon in /in/N1dBe on line 198 ),new google.maps.LatLng( Notice: Undefined variable: p14lat in /in/N1dBe on line 198 , Notice: Undefined variable: p14lon in /in/N1dBe on line 198 )), colorinterior: " Notice: Undefined variable: p20relleno in /in/N1dBe on line 199 ", colorborde: " Notice: Undefined variable: p20borde in /in/N1dBe on line 200 ", transpinterior: " Notice: Undefined variable: p20rellenoopa in /in/N1dBe on line 201 " }; */ citymap['P23'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p23lat in /in/N1dBe on line 205 , Notice: Undefined variable: p23lon in /in/N1dBe on line 205 ),new google.maps.LatLng( Notice: Undefined variable: p17lat in /in/N1dBe on line 205 , Notice: Undefined variable: p17lon in /in/N1dBe on line 205 )), bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p20lat in /in/N1dBe on line 206 , Notice: Undefined variable: p20lon in /in/N1dBe on line 206 ),new google.maps.LatLng( Notice: Undefined variable: p14lat in /in/N1dBe on line 206 , Notice: Undefined variable: p14lon in /in/N1dBe on line 206 )), colorinterior: " Notice: Undefined variable: p23relleno in /in/N1dBe on line 207 ", colorborde: " Notice: Undefined variable: p23borde in /in/N1dBe on line 208 ", transpinterior: " Notice: Undefined variable: p23rellenoopa in /in/N1dBe on line 209 " }; citymap['P24'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p24lat in /in/N1dBe on line 213 , Notice: Undefined variable: p24lon in /in/N1dBe on line 213 ),new google.maps.LatLng( Notice: Undefined variable: p18lat in /in/N1dBe on line 213 , Notice: Undefined variable: p18lon in /in/N1dBe on line 213 )), colorinterior: " Notice: Undefined variable: p24relleno in /in/N1dBe on line 214 ", colorborde: " Notice: Undefined variable: p24borde in /in/N1dBe on line 215 ", transpinterior: " Notice: Undefined variable: p24rellenoopa in /in/N1dBe on line 216 " }; citymap['P25'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p25lat in /in/N1dBe on line 219 , Notice: Undefined variable: p25lon in /in/N1dBe on line 219 ),new google.maps.LatLng( Notice: Undefined variable: p19lat in /in/N1dBe on line 219 , Notice: Undefined variable: p19lon in /in/N1dBe on line 219 )), colorinterior: " Notice: Undefined variable: p25relleno in /in/N1dBe on line 220 ", colorborde: " Notice: Undefined variable: p25borde in /in/N1dBe on line 221 ", transpinterior: " Notice: Undefined variable: p25rellenoopa in /in/N1dBe on line 222 " }; citymap['P26'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p26lat in /in/N1dBe on line 225 , Notice: Undefined variable: p26lon in /in/N1dBe on line 225 ),new google.maps.LatLng( Notice: Undefined variable: p20lat in /in/N1dBe on line 225 , Notice: Undefined variable: p20lon in /in/N1dBe on line 225 )), colorinterior: " Notice: Undefined variable: p26relleno in /in/N1dBe on line 226 ", colorborde: " Notice: Undefined variable: p26borde in /in/N1dBe on line 227 ", transpinterior: " Notice: Undefined variable: p26rellenoopa in /in/N1dBe on line 228 " }; citymap['P27'] = { bounds: new google.maps.LatLngBounds(new google.maps.LatLng( Notice: Undefined variable: p27lat in /in/N1dBe on line 231 , Notice: Undefined variable: p27lon in /in/N1dBe on line 231 ),new google.maps.LatLng( Notice: Undefined variable: p21lat in /in/N1dBe on line 231 , Notice: Undefined variable: p21lon in /in/N1dBe on line 231 )), colorinterior: " Notice: Undefined variable: p27relleno in /in/N1dBe on line 232 ", colorborde: " Notice: Undefined variable: p27borde in /in/N1dBe on line 233 ", transpinterior: " Notice: Undefined variable: p27rellenoopa in /in/N1dBe on line 234 " }; var cityCircle, GeoMarker; function initialize() { // Create the map. var mapOptions = { zoom: 15, disableDefaultUI:true, draggable: false, zoomControl: false, scrollwheel: false, center: new google.maps.LatLng( Notice: Undefined variable: lat in /in/N1dBe on line 248 , Notice: Undefined variable: lon in /in/N1dBe on line 248 ), mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById('map'), mapOptions); var infoWindow = new google.maps.InfoWindow; var onMarkerClick = function() { var marker = this; var contenido = marker.contenido; infoWindow.setContent(contenido); infoWindow.open(map, marker); }; google.maps.event.addListener(map, 'click', function() { infoWindow.close(); }); GeoMarker = new GeolocationMarker(); GeoMarker.setCircleOptions({fillColor: '#808080'}); google.maps.event.addListenerOnce(GeoMarker, 'position_changed', function() { }); google.maps.event.addListener(GeoMarker, 'geolocation_error', function(e) { alert('There was an error obtaining your position. Message: ' + e.message); }); // Construct the circle for each value in citymap. // Note: We scale the population by a factor of 20. for (var city in citymap) { var populationOptions = { // strokeColor: '#FF0000', strokeOpacity: 0.8, strokeWeight: 1, map: map, contenido: citymap[city].colorborde, strokeColor: citymap[city].colorborde, fillColor: citymap[city].colorinterior, fillOpacity: citymap[city].transpinterior, bounds: citymap[city].bounds }; // Add the circle for this city to the map. cityCircle = new google.maps.Rectangle(populationOptions); google.maps.event.addListener(cityCircle, 'click', onMarkerClick); } GeoMarker.setMap(map); // google.maps.event.addListener(cityCircle, 'click', onMarkerClick); // google.maps.event.addListener(marker2, 'click', onMarkerClick); // google.maps.event.addListener(marker3, 'click', onMarkerClick); } google.maps.event.addDomListener(window, 'load', initialize); </script> </head> <body> <div id="topbar" class="transparent"> <div id="leftnav"> <a href="home.php"><img alt="home" src="images/home.png" /></a> </div> <div id="rightnav" onclick="getLocation(9)"> <a href="#"><img src="thumbs/marker_green.png" height="14"></img>&nbsp; Notice: Undefined variable: dots in /in/N1dBe on line 319 / Notice: Undefined variable: dotslimit in /in/N1dBe on line 319 </a> </div> </div> <div id="content"> <ul class="pageitem"> <li class="mapbox"> <div id="map" style="height: 200px"> </div> </li> </ul> <ul class="pageitem"> <li class="menu" onclick="getLocation(9)"> <a href="#"><img alt="PinaDot Next Match" src="thumbs/ios7_register.png" /> <span class="name" >Refresh</span> <span class="arrow"></span> </a> </li> <li class="menu" onclick="getLocation2(9)"> <a href="dotinfo.php?lat= Notice: Undefined variable: lat in /in/N1dBe on line 341 &lon= Notice: Undefined variable: lon in /in/N1dBe on line 341 "><img alt="PinaDot Next Match" src="thumbs/ios7_register.png" /> <span class="name" >PinaDot</span> <span class="arrow"></span> </a> </li> </ul> </div> <div id="footer"> <a class="noeffect" href="http://www.pinadot.com">PinaDot.com 2014</a> </div>