[OpenLayers-Users] Need some help displaying a Vector layer

Stephen Woodbridge woodbri at swoodbridge.com
Tue Sep 30 13:29:45 PDT 2014


Thanks that was what I needed!

I got it to display, now, I need to fix the style info which is not 
correct but that should be straight forward.

I'm not sure I would have found that problem as I already sent the 
better part of a day trying to track it down, so many thanks for your 
time to look at this.

Best regards,
   -Steve

On 9/30/2014 12:22 PM, Martin Davis wrote:
> In montevideo.html:99 it looks like the code is using a Geometry as a
> feature.  It might be necessary to create a OpenLayers.Feature.Vector
> containing the geometry, as in this example:
>
> http://docs.openlayers.org/library/introduction.html#adding-a-vector-marker-to-the-map
>
>
>
> On Mon, Sep 29, 2014 at 6:05 PM, Stephen Woodbridge
> <woodbri at swoodbridge.com <mailto:woodbri at swoodbridge.com>> wrote:
>
>     Hi All,
>
>     I'm a little rusty working in OL, I have a map and I'm trying to
>     read some geometry from my server and display it as a vector layer.
>     This is just a quick throw away map for diagnostic purposes.
>
>     I have the data loading, and I can see it in firebug but I can not
>     figure out why it is not displaying.
>
>     http://imaptools.com:8080/__demo/montevideo.html
>     <http://imaptools.com:8080/demo/montevideo.html>
>
>     Load the page then click [Update Route] button to load the data ans
>     display it (only it is not displaying).
>
>     This should be loading some vectors in the bottom section of the map
>     around the "B" in yellow.
>
>     Yes, this is an old version, OL 2.10, but that should not matter as
>     I'm doing the same sort of this on OL 2.9 and it was working there.
>
>     I would appreciate if someone can give me a clue as to what my
>     problem is, beside the obvious that I should start over with newer
>     code :)
>
>     Thanks,
>         -Steve
>     _________________________________________________
>     Users mailing list
>     Users at lists.osgeo.org <mailto:Users at lists.osgeo.org>
>     http://lists.osgeo.org/__mailman/listinfo/openlayers-__users
>     <http://lists.osgeo.org/mailman/listinfo/openlayers-users>
>
>



More information about the Users mailing list