Skip to content

Commit

Permalink
cache_features exposed in Layer class
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Cervenak committed Jan 14, 2016
1 parent dc73e55 commit a116021
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions NETMapnik/mapnik_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ namespace NETMapnik
(*_layer)->set_srs(msclr::interop::marshal_as<std::string>(value));
}

bool Layer::CacheFeatures::get()
{
return (*_layer)->cache_features();
}
void Layer::CacheFeatures::set(bool value)
{
(*_layer)->set_cache_features(value);
}

System::Collections::Generic::IEnumerable<System::String^>^ Layer::Styles::get()
{
std::vector<std::string> const& style_names = (*_layer)->styles();
Expand Down
6 changes: 6 additions & 0 deletions NETMapnik/mapnik_layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ namespace NETMapnik
void set(System::String^ value);
}

property bool CacheFeatures
{
bool get();
void set(bool value);
}

property System::Collections::Generic::IEnumerable<System::String^>^ Styles
{
System::Collections::Generic::IEnumerable<System::String^>^ get();
Expand Down

0 comments on commit a116021

Please sign in to comment.