[OpenLayers-Users] Can I retrieve a legend image from a vector layer
Morescratch
morescratch at live.com
Tue Jun 24 14:01:49 PDT 2014
Sorry to open this again... but I am difficulty getting this to work.
My code is as follows:
var symbolizer = rule.symbolizer,
pointFeature = new OpenLayers.Feature.Vector( new
OpenLayers.Geometry.Point( 0, 0 ) ),
renderer = new OpenLayers.Renderer.SVG( "myDivID", { resolution: 1 } );
renderer.drawFeature( pointFeature, symbolizer ); // error
I keep getting an error: "Uncaught TypeError: Cannot read property
'baseLayer' of null"
Any ideas on what I am doing wrong? Is suspect that the feature needs to be
added to the map... but I don't see that happening in the GeoExt code...
Thank you in advance!!!
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Can-I-retrieve-a-legend-image-from-a-vector-layer-tp3922167p5147665.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list