Google Maps API V3 (javascript)

Posted: July 30th, 2009 | Author: montes | Filed under: programacion | Tags: , , , , | No Comments »

Versión en español de este post

Although the Google Maps API V3 is still quite green and much remains to be polished, it is quite usable and if you only need the basic features of Google Maps, then you can use it for your project, the new speed and usability at portable devices is a plus.

This code is an example of the use of various techniques with javascript:

  • Map centering at user’s location
  • Event capturing
  • Reverse Geocoding
  • Use of Nianwei’s library scrollwheelzoom (still not officially supported in V3)

Read the rest of this entry »


Google Maps API V3 (javascript)

Posted: July 29th, 2009 | Author: montes | Filed under: programacion | Tags: , , , , | 1 Comment »

Aunque el API V3 de Google Maps aún está bastante verde y le falta mucho por pulir, ya es bastante usable y si sólo necesitamos las características básicas de Google Maps nos puede servir para nuestro proyecto.

Este código es un ejemplo del uso de varias técnicas con javascript:

  • Centrar el mapa en la ubicación del visitante
  • Captura de eventos
  • Reverse Geocoding
  • Uso de la librería de Nianwei para hacer zoom con la rueda del ratón (aún no soportado oficalmente en la V3)

Read the rest of this entry »


No más internet explorer 6 (php)

Posted: July 28th, 2009 | Author: montes | Filed under: programacion | No Comments »

En apoyo a la campaña IE6 Must Die dejo un código en PHP para que añadáis a vuestros proyectos y juntos consigamos que de una vez nadie use Internet Explorer 6.

if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.') != FALSE)
{
	echo "<h2>Estás usando Internet Explorer 6, un navegador totalmente desfasado, por favor actualízalo y ayudanos a conseguir un internet mejor.</h2>";
	echo "<h2>You are using Internet Explorer 6, a totally outdated browser, please update it and help us get a better internet.</h2>";
	echo "<br />";
	echo "<center>";
	echo "<h3>Descárgate uno de estos - Download one of these</h3>";
	echo "<br />";
	echo "<a href='http://www.mozilla.com/firefox/'>Mozilla Firefox</a><br />";
	echo "<a href='http://www.microsoft.com/windows/internet-explorer/'>Internet Explorer</a><br />";
	echo "<a href='http://www.opera.com/'>Opera</a><br />";
	echo "<a href='http://www.google.com/chrome/'>Google Chrome</a><br />";
	echo "<a href='http://www.apple.com/safari/'>Apple Safari</a><br />";
	echo "</center>";
	return;
}