-
Notifications
You must be signed in to change notification settings - Fork 105
change_clickable_Ways_centring #5130
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
| NSString *tag2 = [self getOsmTag2]; | ||
| NSString *val2 = [self getOsmValue2]; | ||
| if (tag2 && val2) | ||
| tags[tag1] = val1; |
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.
tag2/val2
| return _osmId >> AMENITY_ID_RIGHT_SHIFT; | ||
| } | ||
|
|
||
| - (NSDictionary<NSString *, NSString *> *)getOsmTags |
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.
getOsmTags in Java returns LinkedHashMap - so here we must use OrderedDictionary as result
| NSDictionary<NSString *, NSString *> *osmTags = [amenity getOsmTags]; | ||
| MutableOrderedDictionary<NSString *, NSString *> *tags = [[MutableOrderedDictionary alloc] initWithDictionary:osmTags]; |
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.
How randomized dictionary made ordered? It seems wrong.
| //TODO: is this correct place to this code launch? | ||
| [ClickableWayHelper openClickableWayAmenityWithAmenity:poi adjustMapPosition:YES]; | ||
| return YES; |
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.
It seems a wrong way to openClickableWayAmenity if multiple ClickableWay found in foundBinaryMapObjects.
RZR-UA
left a comment
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.
Please follow comments.
https://github.com/osmandapp/OsmAnd-Issues/issues/2873