File tree Expand file tree Collapse file tree 5 files changed +31
-2
lines changed Expand file tree Collapse file tree 5 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
node_modules
3
- dev
4
3
5
4
# local env files
6
5
.env
Original file line number Diff line number Diff line change
1
+ <script setup>
2
+ import { GoogleMap , AdvancedMarker } from ' ../src'
3
+
4
+ const center = { lat: 40.689247 , lng: - 74.044502 }
5
+ const markerOptions = { position: center, title: ' LADY LIBERTY' }
6
+ const pinOptions = { background: ' #FBBC04' }
7
+ </script >
8
+
9
+ <template >
10
+ <GoogleMap mapId =" DEMO_MAP_ID" style =" width : 100% ; height : 500px " :center =" center" :zoom =" 15" >
11
+ <AdvancedMarker :options =" markerOptions" :pin-options =" pinOptions" />
12
+ </GoogleMap >
13
+ </template >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 " />
5
+ < link rel ="icon " href ="/favicon.ico " />
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
+ < title > vue3-google-map</ title >
8
+ </ head >
9
+ < body >
10
+ < div id ="app "> </ div >
11
+ < script type ="module " src ="./main.ts "> </ script >
12
+ </ body >
13
+ </ html >
Original file line number Diff line number Diff line change
1
+ import { createApp } from "vue" ;
2
+ import App from "./App.vue" ;
3
+
4
+ createApp ( App ) . mount ( "#app" ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import vue from "@vitejs/plugin-vue";
6
6
import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js" ;
7
7
8
8
export default defineConfig ( {
9
- root : "./dev " ,
9
+ root : "./playground " ,
10
10
plugins : [
11
11
vue ( ) ,
12
12
cssInjectedByJsPlugin ( {
You can’t perform that action at this time.
0 commit comments