Skip to content

Commit fd6fe16

Browse files
fix(iOS): adjustments to layout of Location example + deprecations updates (#8311)
Co-authored-by: alexandre burton <burton@artificiel.org>
1 parent e88f36e commit fd6fe16

File tree

1 file changed

+7
-7
lines changed
  • examples/ios/CoreLocationExample/src

1 file changed

+7
-7
lines changed

examples/ios/CoreLocationExample/src/ofApp.mm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,31 @@
2626
//--------------------------------------------------------------
2727
void ofApp::draw(){
2828
ofSetColor(54);
29-
ofDrawBitmapString("Core Location Example", 8, 20);
29+
ofDrawBitmapString("Core Location Example", 8, 60);
3030

3131
ofEnableAlphaBlending();
3232
ofSetColor(255);
3333
ofPushMatrix();
3434
ofTranslate(160, 220, 0);
35-
ofRotateZ(heading);
35+
ofRotateZDeg(heading);
3636
compassImg.draw(0,0);
3737
ofPopMatrix();
3838

3939
ofSetColor(255);
4040
arrowImg.draw(160, 220);
4141

4242
ofSetColor(54);
43-
ofDrawBitmapString("LAT: ", 8, ofGetHeight() - 8);
44-
ofDrawBitmapString("LON: ", ofGetWidth() - 108, ofGetHeight() - 8);
43+
ofDrawBitmapString("LAT: ", 8, ofGetHeight() - 68);
44+
ofDrawBitmapString("LON: ", ofGetWidth() - 108, ofGetHeight() - 68);
4545

4646
if(hasGPS){
47-
cout<<coreLocation->getLatitude()<<" | "<< coreLocation->getLatitude() <<endl;
47+
cout<<coreLocation->getLatitude()<<" | "<< coreLocation->getLongitude() <<endl;
4848

4949
ofSetHexColor(0x009d88);
50-
ofDrawBitmapString(ofToString(coreLocation->getLatitude()), 8 + 33, ofGetHeight() - 8);
50+
ofDrawBitmapString(ofToString(coreLocation->getLatitude()), 8 + 33, ofGetHeight() - 68);
5151

5252
ofSetHexColor(0x0f7941d);
53-
ofDrawBitmapString(ofToString(coreLocation->getLongitude()), (ofGetWidth() - 108) + 33, ofGetHeight() - 8);
53+
ofDrawBitmapString(ofToString(coreLocation->getLongitude()), (ofGetWidth() - 108) + 33, ofGetHeight() - 68);
5454

5555
}
5656
}

0 commit comments

Comments
 (0)