[OpenLayers-Users] also strange vector behavior (obviously I've
messed up)
Nicholas Efremov-Kendall
n.e.kendall at gmail.com
Mon Aug 3 13:56:51 EDT 2009
Firebug doesn't pick anything up.
On Mon, Aug 3, 2009 at 8:54 PM, Christopher Schmidt <crschmidt at metacarta.com
> wrote:
> On Mon, Aug 03, 2009 at 08:35:10PM +0300, Nicholas Efremov-Kendall wrote:
> > Hi all,
> > Not sure what's going on here, and what/why I'm doing wrong.
> > I'm loading successfully a gml layer which isn't displaying in the right
> > place
> > var topo = new OpenLayers.Layer.GML ("Topography", "data/topo.gml",
> > {
> > style: {strokeWidth: 1, strokeColor:"#CCCCCC"},
> > }
> > );
> >
> > when I add projection and format criteria, it doesn't display at all, let
> > alone in the wrong place, and the auto map.setCenter function doesn't
> work.
> > var topo = new OpenLayers.Layer.GML ("Topography", "data/topo.gml",
> > {
> > style: {strokeWidth: 1, strokeColor:"#CCCCCC"},
> > projection: new OpenLayers.Projection("EPSG:4326"),
> > format: OpenLayers.Format.GML,
> > }
> > );
> >
> > Is there anything really obvious that I'm missing? thanks again, in
> advance
>
> Are you using IE? If so, the trailing ',' after format will fail.
> Do you have a debugger/error reporting turned on? Check these things first
> for errors.
>
> Otherwise:
> http://docs.openlayers.org/help/minimize.html
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090803/aed5baa9/attachment.html
More information about the Users
mailing list