Skip to content

Commit

Permalink
moves basemaps to constants
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-esch committed Feb 26, 2019
1 parent 3b7d7c5 commit 589006d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cartoframes/assets/vector.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@

<script>
const BASEMAPS = {
DarkMatter: 'https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json',
Voyager: 'https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json',
Positron: 'https://basemaps.cartocdn.com/gl/positron-gl-style/style.json',
DarkMatter: carto.basemaps.darkmatter,
Voyager: carto.basemaps.voyager,
Positron: carto.basemaps.positron
};
if ("@@MAPBOXTOKEN@@") {
mapboxgl.accessToken = "@@MAPBOXTOKEN@@";
Expand Down

0 comments on commit 589006d

Please sign in to comment.