|
26 | 26 | //-------------------------------------------------------------- |
27 | 27 | void ofApp::draw(){ |
28 | 28 | ofSetColor(54); |
29 | | - ofDrawBitmapString("Core Location Example", 8, 20); |
| 29 | + ofDrawBitmapString("Core Location Example", 8, 60); |
30 | 30 |
|
31 | 31 | ofEnableAlphaBlending(); |
32 | 32 | ofSetColor(255); |
33 | 33 | ofPushMatrix(); |
34 | 34 | ofTranslate(160, 220, 0); |
35 | | - ofRotateZ(heading); |
| 35 | + ofRotateZDeg(heading); |
36 | 36 | compassImg.draw(0,0); |
37 | 37 | ofPopMatrix(); |
38 | 38 |
|
39 | 39 | ofSetColor(255); |
40 | 40 | arrowImg.draw(160, 220); |
41 | 41 |
|
42 | 42 | 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); |
45 | 45 |
|
46 | 46 | if(hasGPS){ |
47 | | - cout<<coreLocation->getLatitude()<<" | "<< coreLocation->getLatitude() <<endl; |
| 47 | + cout<<coreLocation->getLatitude()<<" | "<< coreLocation->getLongitude() <<endl; |
48 | 48 |
|
49 | 49 | ofSetHexColor(0x009d88); |
50 | | - ofDrawBitmapString(ofToString(coreLocation->getLatitude()), 8 + 33, ofGetHeight() - 8); |
| 50 | + ofDrawBitmapString(ofToString(coreLocation->getLatitude()), 8 + 33, ofGetHeight() - 68); |
51 | 51 |
|
52 | 52 | ofSetHexColor(0x0f7941d); |
53 | | - ofDrawBitmapString(ofToString(coreLocation->getLongitude()), (ofGetWidth() - 108) + 33, ofGetHeight() - 8); |
| 53 | + ofDrawBitmapString(ofToString(coreLocation->getLongitude()), (ofGetWidth() - 108) + 33, ofGetHeight() - 68); |
54 | 54 |
|
55 | 55 | } |
56 | 56 | } |
|
0 commit comments