/** * Get a layer based on the id assigned by OpenLayers. A {@link * org.gwtopenmaps.openlayers.client.layer.Layer} can be asked for it's id. This id can be used to * get at the layer within the application. * * @param id - String identifier assigned by OpenLayers * @return Layer - the layer on the map or null if there is no layer with the given id */ public Layer getLayer(String id) { JSObject jsObject = MapImpl.getLayer(id, getJSObject()); Layer layer = Layer.narrowToLayer(jsObject); return layer; }