Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const mapRef = document.getElementById('map');
const newMap = await GoogleMap.create({
id: 'my-map', // Unique identifier for this map instance
element: mapRef, // reference to the capacitor-google-map element
apiKey: apiKey, // Your Google Maps API Key
apiKey: apiKey, // Your Google Maps API Key **JUST WEB Api Key works in Android**
config: {
center: {
// The initial position to be rendered by the map
Expand Down Expand Up @@ -198,7 +198,7 @@ export class MyMap {
this.newMap = await GoogleMap.create({
id: 'my-cool-map',
element: this.mapRef.nativeElement,
apiKey: environment.apiKey,
apiKey: environment.apiKey,
config: {
center: {
lat: 33.6,
Expand Down Expand Up @@ -227,7 +227,7 @@ const MyMap: React.FC = () => {
newMap = await GoogleMap.create({
id: 'my-cool-map',
element: mapRef.current,
apiKey: process.env.REACT_APP_YOUR_API_KEY_HERE,
apiKey: process.env.REACT_APP_YOUR_API_KEY_HERE, // **JUST WEB Api Key works in Android**
config: {
center: {
lat: 33.6,
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,19 @@
"@types/node": "^20.11.25",
"husky": "^9.0.1",
"lerna": "^8.1.2",
"prettier": "^3.5.3",
"prettier-plugin-java": "^2.6.7",
"typescript": "^5.4.2"
},
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"dependencies": {},
"workspaces": [
"plugin"
]
],
"exports": {
"import": "./plugin/dist/esm/index.js",
"require": "./plugin/dist/plugin.cjs.js"
}
}
2 changes: 1 addition & 1 deletion plugin/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"plugins": ["./node_modules/prettier-plugin-java"],
"plugins": ["./node_modules/prettier-plugin-java/dist/index.js"],
"printWidth":120,
"tabWidth":2,
"useTabs":false,
Expand Down
2 changes: 1 addition & 1 deletion plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@capacitor/google-maps",
"version": "7.0.1",
"description": "Google maps on Capacitor",
"main": "dist/plugin.cjs.js",
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
"typings": "dist/typings/index.d.ts",
"typesVersions": {
Expand Down
Loading