diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2015-04-16 01:15:41 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2015-04-16 01:15:41 -0700 |
commit | 190709c6b1fd9326d0eef5ffc8eb36070e5ad5c7 (patch) | |
tree | dbff7b348f78d0481bf76d3c3313f3e5514cb7b6 /ios | |
parent | c574acd64da34ea8bbd58ef5440c6add8f365e24 (diff) | |
download | qtlocation-mapboxgl-190709c6b1fd9326d0eef5ffc8eb36070e5ad5c7.tar.gz |
fixes #1157, #1255: cache parsed tiles in memory
Diffstat (limited to 'ios')
-rw-r--r-- | ios/app/MBXViewController.mm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ios/app/MBXViewController.mm b/ios/app/MBXViewController.mm index 078d67d398..13235beb07 100644 --- a/ios/app/MBXViewController.mm +++ b/ios/app/MBXViewController.mm @@ -145,6 +145,7 @@ mbgl::Settings_NSUserDefaults *settings = nullptr; otherButtonTitles:@"Reset North", @"Reset Position", @"Toggle Debug", + @"Empty Memory", @"Add 100 Points", @"Add 1,000 Points", @"Add 10,000 Points", @@ -170,18 +171,22 @@ mbgl::Settings_NSUserDefaults *settings = nullptr; } else if (buttonIndex == actionSheet.firstOtherButtonIndex + 3) { - [self parseFeaturesAddingCount:100]; + [self.mapView emptyMemoryCache]; } else if (buttonIndex == actionSheet.firstOtherButtonIndex + 4) { - [self parseFeaturesAddingCount:1000]; + [self parseFeaturesAddingCount:100]; } else if (buttonIndex == actionSheet.firstOtherButtonIndex + 5) { - [self parseFeaturesAddingCount:10000]; + [self parseFeaturesAddingCount:1000]; } else if (buttonIndex == actionSheet.firstOtherButtonIndex + 6) { + [self parseFeaturesAddingCount:10000]; + } + else if (buttonIndex == actionSheet.firstOtherButtonIndex + 7) + { [self.mapView removeAnnotations:self.mapView.annotations]; } } |