Skip to content

Commit

Permalink
Fix stuff for offline map
Browse files Browse the repository at this point in the history
  • Loading branch information
jnnanni committed May 31, 2023
1 parent 75518e6 commit 0ecfa33
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/teleop/gui/src/components/AutonRoverMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const onlineTileOptions = {
subdomains: ["mt0", "mt1", "mt2", "mt3"]
};
const offlineTileOptions = {
maxNativeZoom: 22,
maxNativeZoom: 14,
maxZoom: 100
};
Expand All @@ -135,8 +135,8 @@ export default {
},
data() {
return {
// Default Center In NC 53 Parking Lot
center: L.latLng(42.294864932393835, -83.70781314674628),
// Default Center at MDRS
center: L.latLng(38.4060250, -110.7923723),
attribution:
'&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
online: true,
Expand Down
6 changes: 3 additions & 3 deletions src/teleop/gui/src/components/AutonTask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ export default {
data() {
return {
// Default coordinates are at NC 53 Parking Lot
// Default coordinates are at MDRS
odom: {
latitude_deg: 42.294864932393835,
longitude_deg: -83.70781314674628,
latitude_deg: 38.4060250,
longitude_deg: -110.7923723,
bearing_deg: 0
},
Expand Down
6 changes: 3 additions & 3 deletions src/teleop/gui/src/components/BasicRoverMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const onlineTileOptions = {
subdomains: ["mt0", "mt1", "mt2", "mt3"],
};
const offlineTileOptions = {
maxNativeZoom: 22,
maxNativeZoom: 14,
maxZoom: 100,
};
Expand All @@ -87,8 +87,8 @@ export default {
data() {
return {
// Default Center In NC 53 Parking Lot
center: L.latLng(42.294864932393835, -83.70781314674628),
// Default Center at MDRS
center: L.latLng(38.4060250, -110.7923723),
attribution:
'&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
online: true,
Expand Down
6 changes: 3 additions & 3 deletions src/teleop/gui/src/components/ERDTask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ export default {
},
data() {
return {
// Default coordinates are at NC 53 Parking Lot
// Default coordinates at MDRS
odom: {
latitude_deg: 42.294864932393835,
longitude_deg: -83.70781314674628,
latitude_deg: 38.4060250,
longitude_deg: -110.7923723,
bearing_deg: 0,
speed: 0
},
Expand Down

0 comments on commit 0ecfa33

Please sign in to comment.