Hi,

I would suggest, that you can't use OpenLayers.Protocol.HTTP with local file
(file://)

Arnd

-----Ursprüngliche Nachricht-----
Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im
Auftrag von Manuel Reimer
Gesendet: Montag, 21. Juni 2010 18:07
An: users@openlayers.org
Betreff: Re: [OpenLayers-Users] Why does "OpenLayers.Layer.Vector" not work
atall?

Arnd Wippermann wrote:
> If you mean by *nothing*, that you get nothing displayed, then I guess you
> use IE. There is a comma in your code, where it not should be.
>
> style: {strokeColor: "green", strokeWidth: 5, strokeOpacity: 0.5},<--
>
> The code you use, should work in FF.

Doesn't help. I use Firefox. The data is loaded from local disc 
(file://) but all JS files are also on the same directory, so "same 
origin policy" shouldn't be the reason. "Layer.GML" works with the same 
test scenario but that silly "Layer.Vector" drives me crazy... :-(

What I try to render is an exported Openstreetmap relation containing 
some ways.

Yours

Manuel

_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to