Skip to content

Commit

Permalink
cleaning up prints
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob6838 committed Dec 18, 2024
1 parent a2fcd1c commit 73aca30
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions gui/src/components/map/map-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1938,16 +1938,13 @@ const MapTab = forwardRef<MAP_REFERENCE_TYPE | undefined, MapProps>(
"crosswalk",
];
for (const image_name of images) {
console.debug("MAP IMAGE Before", image_name);
map.loadImage(`/icons/${image_name}.png`, (error, image) => {
console.debug("MAP IMAGE After", image_name);
if (error) throw error;
if (image == undefined) {
console.error("Error loading image:", image_name, error, image, map.hasImage(image_name));
return;
}
console.debug("MAP IMAGE", image_name, map.hasImage(image_name));

if (!map.hasImage(image_name)) map.addImage(image_name, image);
});
}
Expand All @@ -1957,10 +1954,7 @@ const MapTab = forwardRef<MAP_REFERENCE_TYPE | undefined, MapProps>(
customAttribution={['<a href="https://www.cotrip.com/" target="_blank">© CDOT</a>']}
styleDiffing
style={{ width: "100%", height: "100%" }}
onMove={(evt) => {
setViewState(evt.viewState);
console.log(evt.viewState.zoom);
}}
onMove={(evt) => setViewState(evt.viewState)}
onClick={onClickMap}
// onMouseDown={this.onMouseDown}
// onMouseUp={this.onMouseUp}
Expand Down

0 comments on commit 73aca30

Please sign in to comment.