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

Fix gmf examples #3835

Merged
merged 1 commit into from
May 4, 2018
Merged

Fix gmf examples #3835

merged 1 commit into from
May 4, 2018

Conversation

llienher
Copy link
Member

@llienher llienher commented May 2, 2018

Fix several gmf examples:

  • drawfeature
  • profile
  • mobilemeasure

Fix ngeo example:

  • modifycircle

Also various fixes for gmf apps.

@llienher llienher force-pushed the fix_gmf_examples branch 2 times, most recently from ce208d5 to 5d3118d Compare May 2, 2018 11:53
@llienher llienher self-assigned this May 2, 2018
@llienher llienher added this to the 2.3 milestone May 2, 2018
@llienher llienher force-pushed the fix_gmf_examples branch 5 times, most recently from a96c117 to 976a259 Compare May 3, 2018 11:05
Copy link
Member

@gberaudo gberaudo left a comment

Choose a reason for hiding this comment

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

See my comments and then please merge.

@@ -162,7 +162,7 @@ exports.Controller_.prototype.handleFeatureSet_ = function(
keys.push(
olEvents.listen(
newFeature,
olObject.getChangeEventType(propName),
getChangeEventType(propName),
Copy link
Member

@gberaudo gberaudo May 3, 2018

Choose a reason for hiding this comment

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

We should create the string ourselves: change:${propName}.
See also the other files below where you should do for ex: 'change:dirty' and remove the imports.

@@ -7,7 +7,7 @@ import * as olBase from 'ol/index.js';
import olLayerVector from 'ol/layer/Vector.js';
import * as olObj from 'ol/obj.js';
import olSourceVector from 'ol/source/Vector.js';
import olStyleStyle, {toFunction as toStyleFunction} from 'ol/style/Style.js';
import olStyleStyle, {toFunction as toStyleFunction, createDefaultStyle as defaultFunction} from 'ol/style/Style.js';
Copy link
Member

Choose a reason for hiding this comment

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

Better call it olStyleDefaultFunction.

@llienher llienher changed the title [WIP] Fix gmf examples Fix gmf examples May 3, 2018
@llienher llienher merged commit 87bbb4f into master May 4, 2018
@llienher llienher deleted the fix_gmf_examples branch May 4, 2018 06:17
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