Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kuenzli committed Oct 1, 2018
1 parent a0013cc commit 42af8f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contribs/gmf/src/services/permalink.js
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,9 @@ gmf.Permalink.prototype.registerMap_ = function(map, oeFeature) {
// (1) Initialize the map view with either:
// a) the given ObjectEditing feature
// b) the X, Y and Z available within the permalink service, if available
if (oeFeature && oeFeature.getGeometry()) {
const geom = typeof oeFeature !== 'undefined' && oeFeature !== null ? oeFeature.getGeometry() : undefined;
if (geom) {
const size = map.getSize();
const geom = oeFeature.getGeometry();
goog.asserts.assert(size);
let maxZoom;
if (geom instanceof ol.geom.Point || geom instanceof ol.geom.MultiPoint) {
Expand Down

0 comments on commit 42af8f0

Please sign in to comment.