I would like to update one of the variables in a vector layer class after the original call to the class
OpenLayers.Layer.Observations = OpenLayers.Class(
OpenLayers.Layer.Vector, {
where one of the options is the initialize method:
initialize: function(name, displayStyle, options) {
It seems like you can’t just override the initialize method…
var lyrObs = new OpenLayers.Layer.Observations("Observations",...
lyrObs.initialize(...)
Is there another way to update that initialize methods variable?
Look at the source! There are many examples. What you need is something like this: