Skip to content

Commit

Permalink
Updated a lot
Browse files Browse the repository at this point in the history
  • Loading branch information
davidh167 committed Apr 12, 2024
1 parent fdf6c8b commit ef4bbe7
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 13 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added data/dot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/.DS_Store
Binary file not shown.
3 changes: 0 additions & 3 deletions dist/assets/index-ByiOXPuV.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/assets/index-ByiOXPuV.js.map

This file was deleted.

11 changes: 11 additions & 0 deletions dist/assets/index-UZrm4McE.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/assets/index-UZrm4McE.js.map

Large diffs are not rendered by default.

Binary file added dist/data/dot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<link rel="icon" type="image/x-icon" href="https://openlayers.org/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>David's 313</title>
<script type="module" crossorigin src="/assets/index-ByiOXPuV.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-8qqDi7_8.css">
<script type="module" crossorigin src="/asgn1_CSC313/assets/index-UZrm4McE.js"></script>
<link rel="stylesheet" crossorigin href="/asgn1_CSC313/assets/index-8qqDi7_8.css">
</head>
<body>
<div id="map"></div>
Expand Down
12 changes: 6 additions & 6 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ rome.setStyle(
image: new Icon({
color: '#BADA55',
crossOrigin: 'anonymous',
src: 'data/square.svg',
src: 'data/dot.svg',
}),
}),
);
Expand All @@ -49,7 +49,7 @@ london.setStyle(
image: new Icon({
color: 'rgba(255, 0, 0, .5)',
crossOrigin: 'anonymous',
src: 'data/bigdot.png',
src: 'data/dot.png',
scale: 0.2,
}),
}),
Expand All @@ -61,7 +61,7 @@ madrid.setStyle(
new Style({
image: new Icon({
crossOrigin: 'anonymous',
src: 'data/bigdot.png',
src: 'data/dot.png',
scale: 0.2,
}),
}),
Expand All @@ -74,7 +74,7 @@ paris.setStyle(
image: new Icon({
color: '#8959A8',
crossOrigin: 'anonymous',
src: 'data/dot.svg',
src: 'data/dot.png',
}),
}),
);
Expand All @@ -85,7 +85,7 @@ berlin.setStyle(
new Style({
image: new Icon({
crossOrigin: 'anonymous',
src: 'data/dot.svg',
src: 'data/dot.png',
}),
}),
);
Expand Down Expand Up @@ -125,7 +125,7 @@ const rasterLayer = new TileLayer({
const map = new Map({
target: 'map',
layers: [
new Tile({
new TileLayer({
source: new OSM()
}),
vectorLayer
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"scripts": {
"start": "vite",
"build": "vite build",
"build": "vite build && && cp -R data dist/data",
"serve": "vite preview"
},
"devDependencies": {
Expand Down

0 comments on commit ef4bbe7

Please sign in to comment.