[Gfoss] geojson openlayers.layer

bonushenricus bonushenricus a linux.it
Mer 4 Lug 2012 08:17:29 CEST


Ciao

openlayers deve aver cambiato il codice e non accetta più certe stringhe
tra l'altro fatte anche tramite il plugin per Qgis
ovvero nel caricamento di file geojson
fino a venerdì questo html funzionava perfettamente
http://cicciogas.it/cartografia/bicicosi_1.html

un semplice
var percorso = new OpenLayers.Layer.GML("percorso", "percorso.GeoJSON",
{format: OpenLayers.Format.GeoJSON,style: {strokeColor: "red",
strokeWidth: 6, strokeOpacity: 0.5}});
non lo legge più

ho provato a cambiarlo in
var percorso = new OpenLayers.Layer.Vector('percorso',{
    protocol: new OpenLayers.Protocol.HTTP({
       url: 'percorso.GeoJSON',
       format: new OpenLayers.Format.GeoJSON({}),
style: {strokeColor: "red", strokeWidth: 6, strokeOpacity: 0.5}
});
ma niente ugualmente

qualcuno sa qualcosa?
(ho scritto sulla ml di openlayers users ma ad ora niente, anche se per
onor del vero il mio inglese è pessimo, e anzi dalla fretta mi è
scappato un copia e icnolla di un testo in italiano)

-- 
Enrico Gabrielli
messaggistica, audio e video (prot. xmpp): bonushenricus a jabber.org
http://cicciogas.it/wiki
Album fotografico di bonushenricus: http://www.flickr.com/photos/10688869@N03/show/
Linux count registered user #518831 - Gnu/Linux Debian 6.0



Maggiori informazioni sulla lista Gfoss