[OpenLayers-Users] Why does "OpenLayers.Layer.Vector" not work atall?

Arnd Wippermann arnd.wippermann at web.de
Mon Jun 21 14:13:01 EDT 2010


Hi,

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

Arnd

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Manuel Reimer
Gesendet: Montag, 21. Juni 2010 18:07
An: users at 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 at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list