Skip to content

Commit

Permalink
Upgrade navigation control call
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmartinelli committed Jan 8, 2018
1 parent 0f3a6b2 commit dc57b18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion maps/natural_earth.raster.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
maxZoom: 7
});
map.scrollZoom.disable();
map.addControl(new mapboxgl.Navigation());
map.addControl(new mapboxgl.NavigationControl());

var toggleableLayers = [
{ id: 'ne_2_hr_lc', name: 'Natural Earth II'},
Expand Down
2 changes: 1 addition & 1 deletion maps/natural_earth.vector.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
maxZoom: 7
});
map.scrollZoom.disable();
map.addControl(new mapboxgl.Navigation());
map.addControl(new mapboxgl.NavigationControl());
}
</script>

Expand Down

0 comments on commit dc57b18

Please sign in to comment.