Skip to content

Commit

Permalink
check is Nan
Browse files Browse the repository at this point in the history
  • Loading branch information
lwsu committed Oct 9, 2017
1 parent bab4b2b commit 238bc26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions leaflet.latlng-graticule.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ L.LatLngGraticule = L.Layer.extend({
_lon_r = rt.lng;

var _point_per_lat = (_lat_t - _lat_b) / (hh * 0.2);
if (isNaN(_point_per_lat)) {
return;
}

if (_point_per_lat < 1) { _point_per_lat = 1; }
if (_lat_b < -90) {
_lat_b = -90;
Expand Down

0 comments on commit 238bc26

Please sign in to comment.