Skip to content

Commit

Permalink
Merge pull request #889 from theduckylittle/gm-886/add-hash-tracker-t…
Browse files Browse the repository at this point in the history
…o-mobile

Default to enabling hash tracker on mobile
  • Loading branch information
klassenjs authored Nov 8, 2024
2 parents dbc885b + 4d4466c commit 997a42d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/mobile/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ app.loadMapbook({url: 'mapbook.xml'}).then(function() {
zoom: 12
});

const hashTracker = new gm3.trackers.HashTracker(app.store);
hashTracker.restore();

app.registerService('identify', IdentifyService);
app.registerAction('findme', FindMeAction);

Expand Down Expand Up @@ -98,4 +101,6 @@ app.loadMapbook({url: 'mapbook.xml'}).then(function() {
});

changeTab('map');

hashTracker.startTracking();
});

0 comments on commit 997a42d

Please sign in to comment.