Skip to content

Commit

Permalink
chore: prepare parseQ function
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Mar 28, 2023
1 parent e133ba4 commit 6c3e40a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/map/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ let markers = [];
if (params.has(gPos)) {
parsePB(params.get(gPos));
} else if (params.has(gQuery)) {

} else {

parseQ(params.get(gQuery));
}

const map = L.map('map').setView([mapArea.lat, mapArea.lng], mapArea.zoom);
Expand All @@ -34,6 +32,10 @@ L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {

// ---

function parseQ(param) {
console.log(param);
}

function parsePB(param) {
// https://andrewwhitby.com/2014/09/09/google-maps-new-embed-format/
// https://blog.themillhousegroup.com/2016/08/deep-diving-into-google-pb-embedded-map.html
Expand Down Expand Up @@ -72,8 +74,8 @@ function parsePB(param) {
// two hex parts corresponding to ID of map object? -> FTID????
console.log(val);
}
else {
console.log(val);
else { // might have to add more layers in betwwen to filter out more
parseQ(val);
}
}
else {
Expand Down

0 comments on commit 6c3e40a

Please sign in to comment.