Skip to content
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

Further address customization #3643

Merged
merged 4 commits into from
Jan 17, 2017
Merged

Further address customization #3643

merged 4 commits into from
Jan 17, 2017

Conversation

MKuranowski
Copy link
Contributor

Continuation of PR #3639.

I wanted to create Japanese address scheme, but the generic placeholders doesn't fit with the Japanese tags (especially city, suburb, quarter and neighbourhood). Additionally there are up to 3 numeric address parts, so the 123 housenumber placeholder will mislead users.

The Vietnamese-specific placeholders are imported from (PR #2252)[https://github.com//pull/2252]

@MKuranowski MKuranowski changed the title Address customization Further address customization Dec 9, 2016
.attr('class', function (d) { return 'addr-' + d.id; })
.style('width', function (d) { return d.width * 100 + '%'; });

// Update
var addrTags = [
// setup dropdowns for common address tags
if (typeof addressFormat.dropdowns !== 'undefined') { addrTags = addressFormat.dropdowns; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @natsuyasumi I'd like to get this code merged this week, so I'm taking a look through it now..

Is the reason for addressFormat.dropdowns so that you can turn block_number ("Building No.") and housenumber ("Lot No.") into dropdown fields?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've created the addressFormat.dropdowns for simplicty, so that you don't have to add this fields-that-should-have-dropdowns in address,js. The housenumber field doesn't have dropdown.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@natsuyasumi Ok, makes sense, thanks!

@bhousel bhousel merged commit e1640a1 into openstreetmap:master Jan 17, 2017
@bhousel
Copy link
Member

bhousel commented Jan 17, 2017

Just merged this.. thanks @natsuyasumi!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants