Skip to content

Commit

Permalink
fix: update example comments
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulthink committed Dec 7, 2022
1 parent b9367d3 commit 3fe14db
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 29 deletions.
16 changes: 16 additions & 0 deletions examples/04b.places-icons.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// title: simple marker customizations: Google Maps Places API icons

import {Marker} from './lib/marker';
import {PlaceIcons} from './lib/icons';

export default (map: google.maps.Map) => {
Marker.registerIconProvider(PlaceIcons());

const m1 = new Marker();
m1.position = {lat: 53.555, lng: 10.001};
m1.scale = ({map}) => Math.max(1, Math.pow(1.45, map.zoom) / 64);
m1.map = map;
m1.icon = 'theater';
m1.color = 'white';
m1.borderColor = 'grey';
};
29 changes: 0 additions & 29 deletions examples/05.place-icons.ts

This file was deleted.

0 comments on commit 3fe14db

Please sign in to comment.