Skip to content

Commit 4151054

Browse files
committed
chore: minor fixes
1 parent e956f30 commit 4151054

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

README.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ via a script-tag either from a CDN or from any other webserver.
4141
</script>
4242
```
4343

44-
See the examples in [./examples/html](./examples/html) for full examples on
44+
See the examples in [./examples/html](./examples/html) for full examples on
4545
how to use the library without a bundler.
4646

47-
### npm Installation (for now)
47+
## Installation (for now)
4848

4949
When you're using a bundler and want to use an npm-module, you can install
5050
it from the tarball [published here][npm-pack-url]:
5151

52-
npm install https://storage.ubidev.net/marker-api-playground/lib/ubilabs-google-maps-marker.tgz
52+
npm install https://storage.ubidev.net/marker-api-playground/lib/googlemaps-marker.tgz
5353

5454
And use it in your project:
5555

5656
```javascript
57-
import {Marker} from '@ubilabs/google-maps-marker';
57+
import {Marker} from '@googlemaps/marker';
5858

5959
async function main() {
6060
const {Map} = await google.maps.importLibrary('maps');
@@ -101,11 +101,7 @@ marker.color = 'lightblue';
101101
marker.position = {lng: 34, lat: 23};
102102

103103
// dynamic attributes
104-
marker.scale =
105-
({map}) =>
106-
({map}) =>
107-
Math.max(1, Math.pow(1.45, map.zoom) / 64);
108-
104+
marker.scale = ({map}) => Math.max(1, Math.pow(1.45, map.zoom) / 64);
109105
marker.color = ({data}) => (data.someValue > 10 ? 'red' : 'blue');
110106
```
111107

examples/playground/vite.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ export default defineConfig(({mode}) => {
1313
build: {
1414
rollupOptions: {
1515
input: {
16-
main: resolve(__dirname, 'index.html'),
17-
examples: resolve(__dirname, './examples.html')
16+
main: resolve(__dirname, 'index.html')
1817
}
1918
}
2019
},

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"server:docs": "http-server ./dist/docs",
5252
"docs": "run-p watch:docs server:docs",
5353
"deploy:playground": "cd examples/playground && npm run deploy",
54-
"deploy:archive": "npm run clean && npm run build && npm pack --pack-destination ./dist && mv ./dist/ubilabs-google-maps-marker*.tgz ./dist/ubilabs-google-maps-marker.tgz && gsutil -m rsync -rc ./dist/ gs://storage.ubidev.net/marker-api-playground/lib/",
54+
"deploy:archive": "npm run clean && npm run build && npm pack --pack-destination ./dist && mv ./dist/googlemaps-marker*.tgz ./dist/googlemaps-marker.tgz && gsutil -m rsync -rc ./dist/ gs://storage.ubidev.net/marker-api-playground/lib/",
5555
"deploy": "run-s deploy:*"
5656
},
5757
"devDependencies": {

0 commit comments

Comments
 (0)