getLayerByIndex method
Gets a layer given an index
Implementation
MapLayer getLayerByIndex(int index) {
if (index >= 0 && index < _drawableLayers.length) {
return _drawableLayers[index].layer;
}
throw VectorMapError('Invalid layer index: $index');
}