diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-16 11:13:59 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-16 16:15:28 -0800 |
commit | 2ee52915fe4d2889ddac217678d40dca9beae176 (patch) | |
tree | 5906ad432e1fe755c3b87199b067714c6d51034c /platform/ios | |
parent | 2b782308e5bf0e33f2267499630f25006b451cf7 (diff) | |
download | qtlocation-mapboxgl-2ee52915fe4d2889ddac217678d40dca9beae176.tar.gz |
[ios, android] Add a method to invalidate custom layers, forcing a repaint
Diffstat (limited to 'platform/ios')
-rw-r--r-- | platform/ios/MGLMapView.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index e9657f5616..ab18c1b4c7 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -3675,4 +3675,9 @@ void MGLFinishCustomStyleLayer(void *context) context, otherIdentifier.UTF8String); } +- (void)invalidateCustomStyleLayers +{ + _mbglMap->update(mbgl::Update::Repaint); +} + @end |