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

Backward compatibility for rl_features #1062

Merged

Conversation

adube
Copy link
Contributor

@adube adube commented Apr 25, 2016

This PR adds the backward compatibility for rl_features in the permalink, i.e. for the features of the redlining tool from 1.6.

Was blocked by

This PR was blocked by: #1069

To do

  • Review

Test cases

You can try them here: https://geomapfish-demo.camptocamp.net/2.0

Examples (removed prefix: https://geomapfish-demo.camptocamp.net/2.0/theme/Transport?map_x=542000&map_y=154000&map_zoom=2&):

@adube
Copy link
Contributor Author

adube commented Apr 25, 2016

@sbrunner I copied the examples you provided here #1059 (comment)

The line doesn't work. I noticed that there's two ~~ characters in the url. Is this a typo ? When I remove one of the two it works.

Please, let me know.

@sbrunner
Copy link
Member

no its not a typo, an other example:
rl_features=Fl(drh7F9tx2!htv_z1k_~showMeasure*true~strokeColor*%2523ff0000%27strokeWidth*1)
it syntax is (for line): Fl(<geom>~<attributes>~<style>), it's possible that the current implementation don't support the style ...

@adube
Copy link
Contributor Author

adube commented Apr 26, 2016

It does support the style. It's just that when two ~~ characters follow one an other an error is thrown.

@sbrunner Would you please open an issue about this ? It's out of scope of this PR.

@adube
Copy link
Contributor Author

adube commented Apr 26, 2016

#1067 Should fix the issue with rectangles.

@adube adube force-pushed the ngeo-featurehash-write-new-properties branch from a59f683 to 43d8f94 Compare April 26, 2016 12:47
@adube
Copy link
Contributor Author

adube commented Apr 26, 2016

@sbrunner The text type is the one we with issues we haven't discussed about yet. Here's a summary:

  • fontSize -> we now use the size property, which is used by points to determine their radius AND by text to determine the font size in pt, not px. So, the value 12px we receive currently conflicts with what we have. What should we do about this ? I suggest simply reading it and convert it to the proper pt value using a conversion tool. @fredj Do you know any I could use ? Something like: http://websemantics.co.uk/resources/font_size_conversion_chart/
  • fontFamily -> it is not supported to choose the font family in GMF v2, at least if wasn't included in the specs. This will be ignored. Do you agree ?
  • graphic -> I don't know what that is.

@sbrunner
Copy link
Member

+1 for fontsize
graphic just say to openlayer 2 that we don't have any icon, it should be ignored.
fontFamily can't be changed in the UI, he can be ignored.

@adube
Copy link
Contributor Author

adube commented Apr 26, 2016

Excellent. I have what I need to continue.

@sbrunner Would you please link the issue about the linestring format in this PR ?

@adube adube force-pushed the ngeo-featurehash-write-new-properties branch from 43d8f94 to bfdccf5 Compare April 26, 2016 14:49
@sbrunner
Copy link
Member

Witch issue? a new one?

@adube
Copy link
Contributor Author

adube commented Apr 26, 2016

Yes, a new issue. See: #1062 (comment)

@sbrunner
Copy link
Member

Ok, I miss your comment :-)

@adube
Copy link
Contributor Author

adube commented Apr 27, 2016

Text now converts px -> pt. Live example updated. The only thing remaining that block this PR is: #1069 .

@adube adube force-pushed the ngeo-featurehash-write-new-properties branch from c51a8b3 to eec0055 Compare April 29, 2016 12:06
@fredj
Copy link
Member

fredj commented May 2, 2016

#1069 is now fixed

@adube adube force-pushed the ngeo-featurehash-write-new-properties branch from eec0055 to 69874d4 Compare May 3, 2016 16:36
@adube
Copy link
Contributor Author

adube commented May 3, 2016

Now that #1069 has been fixed, this is ready for review.

@adube adube changed the title (wip) Backward compatibility for rl_features Backward compatibility for rl_features May 3, 2016
@fredj
Copy link
Member

fredj commented May 4, 2016

please squash all your commits into one

@fredj fredj merged commit 74f7739 into camptocamp:master May 4, 2016
@fredj
Copy link
Member

fredj commented May 4, 2016

please squash all your commits into one

I've finally used the new squash and merge button

Thanks @adube

@adube
Copy link
Contributor Author

adube commented May 4, 2016

I was used to squash all commits into one. Even with the new button, if you prefer people still squashing their commits themselves, please let me know. Thanks.

@adube adube deleted the ngeo-featurehash-write-new-properties branch May 4, 2016 12:01
@sbrunner sbrunner added this to the Older milestone Aug 23, 2019
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.

3 participants