Skip to content

Commit

Permalink
Merge pull request #28 from rouen-sk/master
Browse files Browse the repository at this point in the history
cache_features exposed in Layer class
  • Loading branch information
jbrwn committed Jan 15, 2016
2 parents 8fbc16f + b5b9c83 commit 74281bc
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));
}

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<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 System::Boolean CacheFeatures
{
System::Boolean get();
void set(System::Boolean value);
}

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

0 comments on commit 74281bc

Please sign in to comment.