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

Remove handleMapPostrender extension point #960

Merged
merged 1 commit into from Sep 1, 2013
Merged

Remove handleMapPostrender extension point #960

merged 1 commit into from Sep 1, 2013

Conversation

elemoine
Copy link
Member

This removes the handleMapPostrender extension point for custom controls. See this comment for the motivations of this removal.

@@ -99,8 +99,7 @@ ol.control.Control.prototype.setMap = function(map) {
var target = goog.isDef(this.target_) ?
this.target_ : map.getOverlayContainer();
goog.dom.appendChild(target, this.element);
if (this.handleMapPostrender !==
ol.control.Control.prototype.handleMapPostrender) {
if (this.handleMapPostrender !== goog.nullFunction) {
Copy link
Member

Choose a reason for hiding this comment

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

Nice. Much more understandable this way.

Copy link
Member Author

Choose a reason for hiding this comment

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

goog.nullFunction was used before, but I could not use goog.nullFunction and have the handleMapPostrender function show up in the API doc. See https://github.com/elemoine/ol3/commit/3a4fc2a99a5eda0df297dec4f8b5939b8aab09e6.

@tschaub
Copy link
Member

tschaub commented Aug 31, 2013

Please merge.

elemoine pushed a commit that referenced this pull request Sep 1, 2013
Remove handleMapPostrender extension point
@elemoine elemoine merged commit e2a1c13 into openlayers:master Sep 1, 2013
@elemoine elemoine deleted the handlemappostrender branch September 1, 2013 21:15
afabiani pushed a commit to geosolutions-it/openlayers that referenced this pull request Nov 7, 2017
TextButtonPanel, Attempt 2 (Zoom-Control-like text+CSS buttons)
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.

None yet

2 participants