Skip to content

Commit

Permalink
Merge pull request #189 from openplannerteam/dev
Browse files Browse the repository at this point in the history
Remove depedency on routable tiles
  • Loading branch information
julianrojas87 authored Feb 21, 2023
2 parents 2b280e9 + 36a4059 commit d351370
Show file tree
Hide file tree
Showing 41 changed files with 14,624 additions and 2,322 deletions.
15 changes: 4 additions & 11 deletions docs/js/example.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
const map = L.map("mapid").setView([51.050043, 3.719926], 10);

L.tileLayer(
"https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}",
{
attribution:
"Map data &copy; <a href=\"https://www.openstreetmap.org/\">OpenStreetMap</a> contributors, <a href=\"https://creativecommons.org/licenses/by-sa/2.0/\">CC-BY-SA</a>, Imagery © <a href=\"https://www.mapbox.com/\">Mapbox</a>",
maxZoom: 18,
id: "mapbox.streets",
accessToken:
"pk.eyJ1IjoibWF4aW10bWFydGluIiwiYSI6ImNqcHdqbjdhaDAzYzc0Mm04eDFhamkzenMifQ.0uNbKJ2WHATkKBBSADuhyQ"
}
).addTo(map);
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
maxZoom: 18
}).addTo(map);

const planner = new PlannerJS.FlexibleTransitPlanner();
planner.addConnectionSource("https://graph.irail.be/sncb/connections");
Expand Down
Loading

0 comments on commit d351370

Please sign in to comment.