temporaneità
English scratches and Italian notes written by Carlo Perassi
  • About
    • Borges
  • Curriculum Vitae
  • Contact
Browse: Home / Google maps

Google maps

MarkerClusterer clearMarkers bugfix

By Carlo on 2009-12-01

(This should be a crosspost written with Massimiliano) It seems that MarkerClusterer has a bug, fixed with this patch (*) written by Massimiliano while we were hunting together for it on this application (now working fine): after the ajax submit and zooming out, the library was still displaying old clusters and markers, because, after destroying [...]

Posted in English | Tagged Google maps, javascript, trivial hacks | 1 Response

KML Confini Comuni

By Carlo on 2009-09-04

Partendo dall’eccellente lavoro di localMapping e utilizzando parte dei dati di un mio post precedente ho creato, con un piccolo script, il file comuni.kml, che abbina quindi i confini dei comuni piemontesi ai relativi codici ISTAT: Google Earth riesce a visualizzarlo mentre Google Maps no, dato che il file è per lui troppo grande; in [...]

Posted in Italiano | Tagged Google maps, Piedmont, trivial hacks | 4 Responses

polylineEncoder 0.1 mod

By Carlo on 2009-08-12

I’ve written this very simple patch for the Pulpedia Google Maps PHP Polyline Encoder 0.1 which removes the warnings and runs properly with PHP5: in the very same directory you can find an example and the patched class.

Posted in English | Tagged Google maps | Leave a response

KML and geoxml3

By Carlo on 2009-08-03

This little example (which is a modified version of the one written by Sterling Udell) reads a KML file using Google Maps JavaScript API Version 3 and geoxml3 to display the markers within a little Firebug/jQuery/JSON callback (useTheData) that shows how to process them.

Posted in English | Tagged Google maps, jQuery | 2 Responses

Server side reverse geocoding

By Carlo on 2009-07-13

There is a discussion about the Google Maps/Google Earth APIs Terms of Service: the question is if we are allowed to use them for server side reverse geocoding; to be honest, I didn’t get so deeply acquainted with this subject but what is missing is a clear one line example (*). :) (*) “Enter” in [...]

Posted in English | Tagged Google maps | Leave a response

Local KML and MarkerClusterer

By Carlo on 2009-07-02

Managing KML files with GGeoXml is easy but you can’t use it when your KML is not reachable by Google: you’d better parse it by hand with GXml. Using the JavaScript Google Maps API V2, I wrote the following example (whose KML is valid like its XHTML Strict) as a starting point when you need [...]

Posted in English | Tagged Google maps | Leave a response

Geocoding behind a proxy

By Carlo on 2009-03-02

The official PHP/MySQL Google Maps Geocoding example uses simplexml_load_file that doesn’t handle a proxy so if your script is behind a proxy, you can’t use it. The problem can be overcome by using stream_context_create and file_get_contents as described in the following snippet: $request_url = $base_url . "&q=" . urlencode($address); $params = array ( ‘http’ => [...]

Posted in English | Tagged geocoding, Google maps, PHP, proxy | Leave a response

Coordinate Comuni piemontesi

By Carlo on 2008-11-03

Dopo aver scritto ed eseguito uno script, ecco latitudine e longitudine (secondo Google Maps) di tuti i 1206 Comuni del Piemonte, per gli usi più improbabili. :) Il file (CSV) comprende: Codice ISTAT; Comune; Provincia (Sigla); Latitudine; Longitudine.

Posted in Italiano | Tagged Google maps, Piedmont | 8 Responses

Search

It passes

it passes

My posts, unless otherwise expressly stated, are licensed under a Creative Commons Attribution-Share Alike 2.5 Italy License.

Copyright © 2006 - 2012 by Carlo Perassi. Powered by WordPress and Hybrid.