Alright, so I discovered fromWKT (i'm using 2.8, so we should be good..) and
I got this far:
var fpwkt = OpenLayers.Geometry.fromWKT;
var fpfeatures = [];
fpfeatures.push(fpwkt('POLYGON((1528 -768,1524 -850,1596 -852,1528
-768))'));
fpfeatures.push(fpwkt('POLYGON((2264 -722,2102 -868,2552 -1052,2556
-760,2264 -722))'));
fpfeatures.push(fpwkt('POINT(3284 -556)'));
fpfeatures.push(fpwkt('POINT(2988 -980)'));
fpfeatures.push(fpwkt('POINT(2300 -884)'));
fpfeatures.push(fpwkt('POINT(2276 -580)'));
fpfeatures.push(fpwkt('POINT(2332 -452)'));
fpfeatures.push(fpwkt('POINT(2540 -420)'));
fpshelves = new OpenLayers.Layer.Vector( "FP Shelves" );
fpshelves.addFeatures([fpfeatures]);
..but I'm getting no vectors, and no errors.
--
View this message in context:
http://n2.nabble.com/blueprints---vectors-to-openlayers-tp3218765p3252510.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users