am not sure whether this is a stupid question or not.. but I am wondering how to dynamically check whether a layer object belongs to OpenLayers.Layer.Vector class.
Thanks for any replies!
|
am not sure whether this is a stupid question or not.. but I am wondering how to dynamically check whether a layer object belongs to OpenLayers.Layer.Vector class. Thanks for any replies! |
||||
|
|
|
Simply test the javascript instanceof operator against OpenLayers.Layer.Vector or Vector |
|||
|
|