-
Notifications
You must be signed in to change notification settings - Fork 107
Context menu gpx appeareance tags fix v3 #5091
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
* context_menu_gpx_appearean_tags_fix * clean code * manual add file * rewrite OAGpxAppearanceInfo to swift * remove old files * quickfix * sync GpxAppearanceInfo with android * sync with android * code review fix * Fix Bool value * Add private static func boolValue --------- Co-authored-by: Dmitry Svetlichny <svetlichny1988@icloud.com>
| CODE_SIGN_IDENTITY = "iPhone Distribution"; | ||
| "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | ||
| CODE_SIGN_STYLE = Manual; | ||
| CODE_SIGN_IDENTITY = "Apple Development"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
|
|
||
| static NSString * const ONLINE_TILES_DIR = @"OsmAnd (online tiles)"; | ||
|
|
||
| static NSString * const XML_COLON = @"_-_"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kXmlColon already exists
| } else { | ||
| processId(transportStop) | ||
| syntheticAmenity.copyNames(transportStop) | ||
| if syntheticAmenity.latitude == 0 && syntheticAmenity.longitude == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this logic correct? The point (0,0) is a real location in the Gulf of Guinea off the coast of Africa, so using (0,0) as a placeholder may be wrong. Maybe u should check for nil instead?
| syntheticAmenity.copyAdditionalInfo(withMap: renderedObject.tags, overwrite: false) | ||
| } | ||
| syntheticAmenity.copyNames(renderedObject) | ||
| if syntheticAmenity.latitude == 0 && syntheticAmenity.longitude == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
up
| { | ||
| NSString *key = entry.declaration->tagName.toNSString(); | ||
| NSString *loc; | ||
| if (key.length > 8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic is unclear. A comment is needed
| [self clearContentForRowInfo:_onlinePhotoCardsRowInfo]; | ||
| _onlinePhotoCardsRowInfo = nearbyImagesRowInfo; | ||
|
|
||
| [self startLoadingImages]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn’t break the content loading logic? When a section is collapsed, images should not be loaded
|
|
||
| + (OATargetMenuViewController *) createMenuController:(OATargetPoint *)targetPoint activeTargetType:(OATargetPointType)activeTargetType activeViewControllerState:(OATargetMenuViewControllerState *)activeViewControllerState headerOnly:(BOOL)headerOnly; | ||
|
|
||
| + (OATargetMenuViewController *) createMenuController:(OATargetPoint *)targetPoint selectedObject:(id)selectedObject activeTargetType:(OATargetPointType)activeTargetType activeViewControllerState:(OATargetMenuViewControllerState *)activeViewControllerState headerOnly:(BOOL)headerOnly; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- (OATargetMenuViewController *)createMenuController:
| return [self.class createMenuController:targetPoint selectedObject:nil activeTargetType:activeTargetType activeViewControllerState:activeViewControllerState headerOnly:headerOnly]; | ||
| } | ||
|
|
||
| + (OATargetMenuViewController *) createMenuController:(OATargetPoint *)targetPoint selectedObject:(id)selectedObject activeTargetType:(OATargetPointType)activeTargetType activeViewControllerState:(OATargetMenuViewControllerState *)activeViewControllerState headerOnly:(BOOL)headerOnly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
up
|
|
||
| @property (nonatomic) BOOL isPolygon; | ||
|
|
||
| - (NSMutableArray<NSString *> *) getOriginalNames; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NSArray ?
| return abs(_bboxRight - _bboxLeft) * abs(_bboxTop - _bboxBottom); | ||
| } | ||
|
|
||
| - (NSMutableArray<NSString *> *) getOriginalNames |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do we use this?
| return ObfConstants.getOsmObjectId(detailsObject.syntheticAmenity) | ||
| } | ||
| return -1 | ||
| return 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed base logic, already use -1 in other places:
NSNumber * osmIdObj = osmId < 0 ? nil : @(osmId);




issue
Old logic:
New logic:
Temp logic. That we're used in release. Because old code was already updated. But all ui features wasn't finished. So it works like in original but using new classes:
In this request i deleted that temp logic. And send to ui DetailsObject with combined data, like it should be in final version. But work with ui menu buildier to build menu with that new combined data isn't finished yet.