Skip to content

Commit

Permalink
Fix lint & build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stilist committed Nov 20, 2017
1 parent cc06825 commit 2379929
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dist/index.css

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.min.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
@import '../node_modules/leaflet/dist/leaflet.css';
@import '../node_modules/leaflet.markercluster/dist/MarkerCluster.css';
@import '../node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css';
10 changes: 5 additions & 5 deletions src/layers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import {
} from "./types";

const rawLayers: IRawNamedTileLayers = Object.freeze({
osm: [
"Open Street Map",
"http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
"Map data © <a href=http://www.openstreetmap.org/copyright>OpenStreetMap</a> contributors",
],
carto_dark: [
"CartoDB dark",
"http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png",
"© <a href=http://www.openstreetmap.org/copyright>OpenStreetMap</a> \
contributors © <a href=https://carto.com/attributions>CARTO</a>",
],
osm: [
"Open Street Map",
"http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
"Map data © <a href=http://www.openstreetmap.org/copyright>OpenStreetMap</a> contributors",
],
stamen_toner: [
"Stamen Watercolor",
"https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png",
Expand Down
3 changes: 1 addition & 2 deletions src/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
} from "leaflet";
import {
namedTileLayers,
tileLayers,
} from "./layers";
import {
ICustomLeafletEvent,
Expand All @@ -29,7 +28,7 @@ Marker.prototype.options.icon = icon({
const defaultOptions = Object.freeze({
// @see https://en.wikipedia.org/wiki/Geographic_center_of_the_contiguous_United_States
center: [39.833333, -98.583333],
layers: tileLayers[0],
layers: namedTileLayers["Open Street Map"],
maxZoom: 18,
zoom: 5,
});
Expand Down

0 comments on commit 2379929

Please sign in to comment.