-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Further address customization #3643
Conversation
… address-customization
.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; } |
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.
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?
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.
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.
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.
@natsuyasumi Ok, makes sense, thanks!
Just merged this.. thanks @natsuyasumi! |
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]