From 7b4a954c40f4c28381f87079553f9ff11e46b272 Mon Sep 17 00:00:00 2001 From: Ryan Curry Date: Tue, 30 Jun 2015 11:09:20 -0700 Subject: [PATCH] graticule.js now uses vectorContext.extent_ When creating the graticule use the extent from the vectorContext instead of the frameState to determine what parallels and meridians should be created. This will allow the graticule to be drawn correctly on views that wrap across the dateline. --- src/ol/graticule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/graticule.js b/src/ol/graticule.js index 89adadad5e..9d4a1f3e69 100644 --- a/src/ol/graticule.js +++ b/src/ol/graticule.js @@ -356,7 +356,7 @@ ol.Graticule.prototype.getParallels = function() { ol.Graticule.prototype.handlePostCompose_ = function(e) { var vectorContext = e.vectorContext; var frameState = e.frameState; - var extent = frameState.extent; + var extent = vectorContext.extent_; var viewState = frameState.viewState; var center = viewState.center; var projection = viewState.projection;