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
[android] Add website:menu tag support #8052
Conversation
I can't test it, I don't find (and know) any restaurant with this tag in the current state of the map (march 2024). Or maybe I do a mistake. Any suggestion ? |
Good feature |
Okay, I will take a look. Just one more thing, I don't need to commit map generation, right ? |
nope 👍️ |
1ce3428
to
995ee09
Compare
Ready for review ^^ !! |
can you post a screenshot of how it looks? :) |
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.
looks good overall! a small nit:
It's uploaded in my first message ^^. |
should it show the link to the menu, or would it be better to use the text "Open Menu in Browser"? eg. where the link is (or was at least) |
|
356ffa1
to
71f5ea7
Compare
@biodranik I updated the code with your recommendations ^^. |
I think it's solved with recent changes ^^. |
Signed-off-by: Arthur-GYT <a.gayot@posteo.com>
@biodranik i need some time to implement this feature in iOS. |
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.
Thanks, I'm ok to merge it after a few minor fixes.
@vng PTAL, it would be great to run the generator with these changes.
Signed-off-by: Arthur-GYT <a.gayot@posteo.com>
Signed-off-by: Arthur-GYT <a.gayot@posteo.com>
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.
Thank you!
@vng merge please
@biodranik @Arthur-GYT in iOS we don't have cells with the subtitles in the PP. But without the subtitle, this field may not be clear. Should we add a new cell (it may not be easy because of the current PP implementation) or use the same style as wiki/fb/link? |
@kirylkaveryn Let's make it simpler, by not showing the URL, and improve later if necessary. |
@Arthur-GYT @biodranik should the new type be validated in the bool EditableMapObject::IsValidMetadata(MetadataID type, std::string const & val
{
switch (type)
{
case MetadataID::FMD_WEBSITE: return ValidateWebsite(value);
case MetadataID::FMD_WEBSITE_MENU: return ValidateWebsite(value); // <--- ?
void EditableMapObject::SetMetadata(MetadataID type, std::string value)
{
switch (type)
{
case MetadataID::FMD_WEBSITE: value = ValidateAndFormat_website(value); break;
case MetadataID::FMD_WEBSITE_MENU: value = ValidateAndFormat_website(value); break; // <--- ?
...
|
I forgot this ^^'. It's added, thanks ^^. |
@Arthur-GYT also important to add the new key into the
And only after that, the |
@biodranik |
Signed-off-by: Arthur-GYT <a.gayot@posteo.com>
@kirylkaveryn It's modified ^^. |
It should be possible to change the order of the visible fields on the screen, the internal order can be anything unrelated. |
It requires a refactroing and may be implemented in a separate PR... |
A separate PR is a good idea! |
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.
Ready to merge?
For me, yes ^^ |
@biodranik @vng Any news ? |
@Arthur-GYT congrats and thanks for your hard work and contribution! |
All is in the title ^^.
Close #2376
I've tested this PR on this node (
France_Free County_North.mwm
) : https://www.openstreetmap.org/node/6637693465I leave it to those who wish (and can) to add this to the IOS version. As I don't own a Mac, it's impossible for me to take care of this ^^.