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.
This commit is contained in:
Ryan Curry
2015-06-30 11:09:20 -07:00
parent 1159e1f792
commit 7b4a954c40

View File

@@ -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;