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

BuildingLayer: Support extrusions in Mapzen Layer #419

Closed
wants to merge 1 commit into from

Conversation

Gustl22
Copy link

@Gustl22 Gustl22 commented Oct 1, 2017

  • Tag: add "levels"
  • BuildingLayer: support extrusions with height and levels, tag unit in meters
  • Add some copyrights
  • Adapt S3DB Layer / reorganized code
  • Support height for Mapzen building_parts
  • Support of building parts in default and mapzen themes

This is a first approach of support for extrusions in other layers than OscimMap4 in VTM. Therefore a unification of tags is necessary and support of S3DB tags in mapsforge maps. I reorganized some code, but only for clarity. There are some hardcoded calculations on height for mapzen layer, because this tag is derived from the area and volume (usually for building_parts). Criticism is welcome ;D

@Gustl22
Copy link
Author

Gustl22 commented Oct 1, 2017

Unfortunately the numberformatter of java isn't supported in web apps. Need to include com.google.gwt.i18n.client.numberformat or is there a simpler way? How can I setup the reference for this case?

@Gustl22 Gustl22 force-pushed the S3DB branch 2 times, most recently from 339ade9 to b8ec7fe Compare October 2, 2017 12:48
+ Tag add "levels"
+ BuildingLayer: support extrusions with height and levels, string unit in meters
+ Add some copyrights
+ Adapt S3DB Layer / rerange code
+ Support height for Mapzen building_parts
+ Support of building parts in default theme and mapzen
@devemux86
Copy link
Collaborator

devemux86 commented Oct 2, 2017

Thanks, will check it!

Quick remark:
Can use a simple round to 2 decimals (in MathUtils). Then don't need to alter any GWT configuration.

public static float round2(float value) {
    return Math.round(value * 100) / 100f;
}

@devemux86 devemux86 added this to the 0.9.0 milestone Oct 3, 2017
devemux86 pushed a commit that referenced this pull request Oct 3, 2017
+ Tag add "levels"
+ BuildingLayer: support extrusions with height and levels, string unit in meters
+ Support height for Mapzen building_parts
+ Support of building parts in default theme and mapzen
@devemux86
Copy link
Collaborator

Merged via fa658bd with slight improvements..

Also with some cleanup, as better have light focused pull requests without irrelevant changes mixed together. 🙂

@devemux86 devemux86 closed this Oct 3, 2017
@Gustl22
Copy link
Author

Gustl22 commented Oct 3, 2017

Yes, I shuffled together some irrelevant stuff. Sorry for that ;D. Thanks for reviewing.

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

Successfully merging this pull request may close these issues.

2 participants