try using geojson instead of WKT http://geojson.org/
z On Tue, Nov 9, 2010 at 1:32 AM, Honigbaum, Torben <[email protected]> wrote: > Hi everboy, > > > > In my application I’m using displaying spatial data from a MS SQL Server. My > Stored Procedure returns a WKT string and processing it by using the > OpenLayers.Format.WKT.read() method. This works fine. > > > > But now I need some additional attributes. In the documentation I read that > it’s possible to assign a collection of values to the attribute property of > a vector feature by using the second constructor parameter. But I use the > OpenLayers.Format.WKT.read() method to create my features, which returns a > feature array. > > Actually I’m using a loop to iterate through the feature array and set the > attributes manual for every feature. Is there any other way to do this? > > > > Thank you. > > > > Kind regards > > Torben Honigbaum > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
