[OpenLayers-Dev] Add Vector attributes

geojoe jwolter at wisc.edu
Mon Nov 16 17:07:35 EST 2009


I want to select database entries from a table with a fliter and create a
vector layer with two additional attributes (ownerID, siteID).

I haven't got a clue how to do this. How do I add additional attributes to
the vector?

	var mySiteVectors = new OpenLayers.Layer.Vector("My Sites", {style:
result_style, 'displayInLayerSwitcher': true});

	map_controls = {
		drag: new OpenLayers.Control.DragFeature( mySiteVectors,
		{
			'onStart':    dragStartBiomass,
			'onComplete': dragEndBiomass
		})
	};

	for(var key in map_controls) {
                map.addControl(map_controls[key]);
	}

	map.addLayer(mySiteVectors); 



-- 
View this message in context: http://n2.nabble.com/Add-Vector-attributes-tp4015032p4015032.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.



More information about the Dev mailing list