Skip to content

Commit

Permalink
Disabled map.zoom to prevent crashing.
Browse files Browse the repository at this point in the history
Removed icons from tracking.
Fixed button name.
  • Loading branch information
JStuhr committed Jan 22, 2013
1 parent 0f81ad3 commit 3ef0ebe
Show file tree
Hide file tree
Showing 16 changed files with 42 additions and 16 deletions.
44 changes: 36 additions & 8 deletions .gitignore
@@ -1,24 +1,38 @@
# built application files
###########################
# built application files #
###########################
*.ap_

# files for the dex VM
########################
# files for the dex VM #
########################
*.dex

# Java class files
####################
# Java class files #
####################
*.class

# generated files
###################
# generated files #
###################
bin/
gen/

# Local configuration file (sdk path, etc)
############################################
# Local configuration file (sdk path, etc) #
############################################
local.properties

# Eclipse project files
#########################
# Eclipse project files #
#########################
.classpath
.project

# IOS files
#############
# IOS files #
#############
.DS_Store
*.swp
*~.nib
Expand All @@ -33,4 +47,18 @@ build/
*.mode1v3
*.mode2v3

xcuserdata
xcuserdata

########################
# Keep out icons local #
########################
Android/res/drawable-hdpi/icon.png
Android/res/drawable-ldpi/icon.png
Android/res/drawable-mdpi/icon.png
Android/res/drawable-xhdpi/icon.png
Android/res/drawable/icon.png
iOS/Arbiter/Resources/icons/icon.png
iOS/Arbiter/Resources/icons/icon@2x.png
iOS/Arbiter/Resources/icons/icon-72.png
iOS/Arbiter/Resources/icons/icon-72@2x.png
iOS/www/src/img/logo.png
2 changes: 1 addition & 1 deletion Android/AndroidManifest.xml
Expand Up @@ -47,7 +47,7 @@

<uses-sdk android:minSdkVersion="11" android:targetSdkVersion="17"/>

<application android:icon="@drawable/icon" android:label="@string/app_name" android:largeHeap="true" android:hardwareAccelerated="true" android:allowBackup="true">
<application android:icon="@drawable/icon" android:label="@string/app_name" android:largeHeap="true" android:hardwareAccelerated="false" android:allowBackup="true">
<activity android:name="Arbiter" android:label="@string/app_name"
android:theme="@android:style/Theme.Black.NoTitleBar"
android:configChanges="orientation|keyboardHidden|locale"
Expand Down
Binary file removed Android/res/drawable-hdpi/icon.png
Binary file not shown.
Binary file removed Android/res/drawable-ldpi/icon.png
Binary file not shown.
Binary file removed Android/res/drawable-mdpi/icon.png
Binary file not shown.
Binary file removed Android/res/drawable-xhdpi/icon.png
Binary file not shown.
Binary file removed Android/res/drawable/icon.png
Binary file not shown.
2 changes: 0 additions & 2 deletions iOS/Arbiter/Arbiter-Info.plist
Expand Up @@ -21,8 +21,6 @@
<string>icon-72.png</string>
<string>icon-72@2x.png</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
</dict>
<key>CFBundleIdentifier</key>
Expand Down
Binary file removed iOS/Arbiter/Resources/icons/icon-72.png
Binary file not shown.
Binary file removed iOS/Arbiter/Resources/icons/icon-72@2x.png
Binary file not shown.
Binary file removed iOS/Arbiter/Resources/icons/icon.png
Binary file not shown.
Binary file removed iOS/Arbiter/Resources/icons/icon@2x.png
Binary file not shown.
Binary file removed iOS/www/src/img/logo.png
Binary file not shown.
Binary file removed iOS/www/src/img/tempLogo.png
Binary file not shown.
4 changes: 2 additions & 2 deletions iOS/www/src/index.html
Expand Up @@ -70,7 +70,7 @@ <h1 data-localize="page.welcome">Welcome</h1>

<!-- Content -->
<div id="idLogo">
<img src="img/tempLogo.png" alt="Arbiter" width="180" height="180"/>
<img src="img/logo.png" alt="Arbiter" width="220" height="180"/>
</div>

<div id='idLanguageListContainer'>
Expand Down Expand Up @@ -168,7 +168,7 @@ <h1 data-localize="page.newProject">New Project</h1>
<div data-role="page" class="Page" id='idServersPage' data-theme="a">
<!-- Header -->
<div data-role="header" class="PageHeader" id="idPageHeader" data-position="fixed">
<a onClick="Arbiter.onBackFromServers()" class="ui-btn-left" data-icon="back" data-localize="button.map">Map</a>
<a onClick="Arbiter.onBackFromServers()" class="ui-btn-left" data-icon="back" data-localize="button.projects">Projects</a>
<h1 data-localize="page.servers">Servers</h1>
<a id="idEditServersButton" onClick="Arbiter.onClick_EditServer()" class="ui-btn-right" data-icon="info" data-localize="button.edit">Edit</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions iOS/www/src/js/TileUtil.js
Expand Up @@ -4,7 +4,7 @@ debug: false,
debugProgress: false,
cacheTilesTest1Couter: 0,
counterCacheInProgressMax: 2,
androidClearWebCacheAfter: 15,
androidClearWebCacheAfter: 20,

formatSuffixMap: {
"image/png": "png",
Expand Down Expand Up @@ -171,7 +171,7 @@ serviceCacheRequests: function(){
*/
if (request.zoom != map.zoom) {
console.log("change zoom to: ", request.zoom, ", from: ", map.zoom);
map.zoomTo(request.zoom);
//map.zoomTo(request.zoom);
}

TileUtil.cacheTile(request.bounds, request.zoom);
Expand Down Expand Up @@ -508,7 +508,7 @@ queueCacheRequestsForZoom: function(layer, bounds, zoomLevel, onlyCountTile) {

//TODO: would like to not have to change map zoom. find out what is needed to
// keep computation valid without having to do this
map.zoomTo(zoomLevel);
//map.zoomTo(zoomLevel);

var resolutionForZoom = map.getResolutionForZoom(zoomLevel);
var extentWidth = (bounds.right - bounds.left) / resolutionForZoom;
Expand Down

0 comments on commit 3ef0ebe

Please sign in to comment.