Archive for the ‘JavaScript’ Category

TileStache Django tiny wrapper

This is the second part of the story about my experiments with the wonderful TileStache that I started with TileStache and Polymaps SVG experiments. First, I would like to thank Michal for the quick patch inclusion, the Polymaps patch is still waiting for the pull and the Django admin patch is awating for somebody to [...]

(continua...) »

Polymaps, TileStache and SVG CSS styling issues

A few days ago I started playing with Polymaps and TileStache, two very promising WebGIS building tools. The final goal of this experiments was the integration with Django. Polymaps Polymaps is a Javascript library aimed to display svg maps in a web page, recently I’ve watched to an interesting talk about a Django-powered app built [...]

(continua...) »

OpenStreeetMap and OpenCycleMap extent bookmarklet

Cropped thumbnail

Today I wrote a simple bookmarklet to get the map extent in EPSG:4326 from the wonderful OpenCycleMaps.org website. It also works on the OpenStreetMap.org website. You can just right-click and save it on your bookmarks, the click on the bookmark while in the OpenCycleMap site and a popup will appear with the extent coordinates printed [...]

(continua...) »

GeoExt debug build

How to build an uncompressed debug version of GeoExt.

(continua...) »

Right click map control in OpenLayers

Thanks to a post in Spatial Notes Blog I’ve finally found a cross-browser way to handle right click on an OL map, I’ve been using an homebrew solution only to discover how it did not work correctly in MSIE. The proposed solution involves a custom control subclass and the standard OL machinery, the MSIE oddities [...]

(continua...) »

Compressione JS in p.mapper

Questa breve nota (disponibile solo in inglese) descrive come migliorare significativamente i tempi di caricamento di p.mapper tramite la compressione dei file JavaScript di questo ottimo client WebGIS.

(continua...) »

Un form builder DHTML basato su jQuery

FormBuilder example

Sempre studiando jQuery ho realizzato un programma 100% javascript per la creazione di form. Il programma è destinato a utenti non molto esperti che devono poter creare dei semplici moduli XHTML che vengono poi integrati in un’altro applicativo.

(continua...) »

Un semplicissimo sistema di template in JavaScript

Per un progetto recente ho deciso di provare jQuery invece del collaudatissimo framework prototype.

Una delle cose di cui ho sentito subito la mancanza è un sistema di template semplice come quello integrato con prototype, dopo aver provato alcuni dei plugin di jQuery che sembravano fare al mio caso, ho scritto in una decine di righe un mini sistema di template che mi ha permesso di supplire velocemente a questa mancanza.

(continua...) »