diff --git a/NETMapnik/mapnik_layer.cpp b/NETMapnik/mapnik_layer.cpp index a94a3b0..fc44a69 100644 --- a/NETMapnik/mapnik_layer.cpp +++ b/NETMapnik/mapnik_layer.cpp @@ -64,6 +64,15 @@ namespace NETMapnik (*_layer)->set_srs(msclr::interop::marshal_as(value)); } + System::Boolean Layer::CacheFeatures::get() + { + return (*_layer)->cache_features(); + } + void Layer::CacheFeatures::set(System::Boolean value) + { + (*_layer)->set_cache_features(value); + } + System::Collections::Generic::IEnumerable^ Layer::Styles::get() { std::vector const& style_names = (*_layer)->styles(); diff --git a/NETMapnik/mapnik_layer.h b/NETMapnik/mapnik_layer.h index ef40885..43d034a 100644 --- a/NETMapnik/mapnik_layer.h +++ b/NETMapnik/mapnik_layer.h @@ -31,6 +31,12 @@ namespace NETMapnik void set(System::String^ value); } + property System::Boolean CacheFeatures + { + System::Boolean get(); + void set(System::Boolean value); + } + property System::Collections::Generic::IEnumerable^ Styles { System::Collections::Generic::IEnumerable^ get();