Skip to content

Commit

Permalink
fix(core): recenter map using correct extent
Browse files Browse the repository at this point in the history
The wrong extent was being used for map recentering; the map would
recenter on a point calculated using the default zoom.

Closes #11586
  • Loading branch information
Spencer Wahl committed Jun 22, 2015
1 parent 83a6453 commit 59f15dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/RAMP/Modules/maptips.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ define([
target.offset().left > getSubPanelLeftOffset()) {
//console.log("offsets", target.offset().left, getSubPanelLeftOffset());
var point = graphic._extent.getCenter(),
width = RAMP.map._params.extent.xmax - RAMP.map._params.extent.xmin;
width = RAMP.map.extent.xmax - RAMP.map.extent.xmin;
point.setX(point.x + width / 6);
topic.publish(EventManager.Map.CENTER_AT, {
point: point
Expand Down

0 comments on commit 59f15dc

Please sign in to comment.