Skip to content
Merged
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: 4 additions & 2 deletions dist/samples/advanced-markers-basic-style/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ async function initMap() {

// [START maps_advanced_markers_basic_style_text_glyph]
const pinTextGlyph = new PinElement({
glyph: 'T',
//@ts-ignore
glyphText: 'T',
glyphColor: 'white',
});
const markerViewGlyphText = new AdvancedMarkerElement({
Expand All @@ -92,7 +93,8 @@ async function initMap() {
// [START maps_advanced_markers_basic_style_hide_glyph]
// Hide the glyph.
const pinNoGlyph = new PinElement({
glyph: '',
//@ts-ignore
glyphText: '',
});
const markerViewNoGlyph = new AdvancedMarkerElement({
map,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/samples/advanced-markers-basic-style/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<head>
<title>Advanced Marker Basic Customization</title>

<script type="module" crossorigin src="./assets/index-CZt8nPGO.js"></script>
<script type="module" crossorigin src="./assets/index-DFenx6lm.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-DW_Ml_OD.css">
</head>
<body>
Expand Down
6 changes: 4 additions & 2 deletions dist/samples/advanced-markers-basic-style/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ async function initMap() {
// [END maps_advanced_markers_basic_style_glyph]
// [START maps_advanced_markers_basic_style_text_glyph]
const pinTextGlyph = new PinElement({
glyph: 'T',
//@ts-ignore
glyphText: 'T',
glyphColor: 'white',
});
const markerViewGlyphText = new AdvancedMarkerElement({
Expand All @@ -82,7 +83,8 @@ async function initMap() {
// [START maps_advanced_markers_basic_style_hide_glyph]
// Hide the glyph.
const pinNoGlyph = new PinElement({
glyph: '',
//@ts-ignore
glyphText: '',
});
const markerViewNoGlyph = new AdvancedMarkerElement({
map,
Expand Down
6 changes: 4 additions & 2 deletions dist/samples/advanced-markers-basic-style/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ async function initMap() {

// [START maps_advanced_markers_basic_style_text_glyph]
const pinTextGlyph = new PinElement({
glyph: 'T',
//@ts-ignore
glyphText: 'T',
glyphColor: 'white',
});
const markerViewGlyphText = new AdvancedMarkerElement({
Expand All @@ -92,7 +93,8 @@ async function initMap() {
// [START maps_advanced_markers_basic_style_hide_glyph]
// Hide the glyph.
const pinNoGlyph = new PinElement({
glyph: '',
//@ts-ignore
glyphText: '',
});
const markerViewNoGlyph = new AdvancedMarkerElement({
map,
Expand Down
6 changes: 4 additions & 2 deletions dist/samples/advanced-markers-basic-style/jsfiddle/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ async function initMap() {


const pinTextGlyph = new PinElement({
glyph: 'T',
//@ts-ignore
glyphText: 'T',
glyphColor: 'white',
});
const markerViewGlyphText = new AdvancedMarkerElement({
Expand All @@ -82,7 +83,8 @@ async function initMap() {

// Hide the glyph.
const pinNoGlyph = new PinElement({
glyph: '',
//@ts-ignore
glyphText: '',
});
const markerViewNoGlyph = new AdvancedMarkerElement({
map,
Expand Down
3 changes: 0 additions & 3 deletions dist/samples/advanced-markers-graphics/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<html>
<head>
<title>Advanced Markers Using Graphics</title>

<script src="https://use.fontawesome.com/releases/v5.15.4/js/all.js"></script>

<link rel="stylesheet" type="text/css" href="./style.css" />
<script type="module" src="./index.js"></script>
</head>
Expand Down
32 changes: 7 additions & 25 deletions dist/samples/advanced-markers-graphics/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function initMap() {
// [START maps_advanced_markers_graphics_png]
// A marker with a with a URL pointing to a PNG.
const beachFlagImg = document.createElement('img');
beachFlagImg.src = new URL('./images/beachflag.png', import.meta.url).href;
beachFlagImg.src = new URL('./public/beachflag.png', import.meta.url).href;

const beachFlagMarkerView = new AdvancedMarkerElement({
map,
Expand All @@ -54,11 +54,11 @@ async function initMap() {

// [START maps_advanced_markers_graphics_svg_glyph]
// A marker with a custom SVG glyph.
const glyphImg = document.createElement('img');
glyphImg.src = new URL('./images/google_logo_g.svg', import.meta.url).href;

const glyphImgSrc = new URL('./public/google_logo_g.svg', import.meta.url);

const glyphSvgPinElement = new PinElement({
glyph: glyphImg,
//@ts-ignore
glyphSrc: glyphImgSrc,
});

const glyphSvgMarkerView = new AdvancedMarkerElement({
Expand All @@ -80,7 +80,8 @@ async function initMap() {

const pinElement = new PinElement({
background: place.iconBackgroundColor,
glyph: new URL(String(place.svgIconMaskURI)),
//@ts-ignore
glyphSrc: new URL(String(place.svgIconMaskURI)),
});

const placeIconMarkerView = new AdvancedMarkerElement({
Expand All @@ -90,25 +91,6 @@ async function initMap() {
title: place.displayName,
});
// [END maps_advanced_markers_graphics_place_icon]

// [START maps_advanced_markers_graphics_fontawesome]
// A marker using a Font Awesome icon for the glyph.
const icon = document.createElement('div');
icon.innerHTML = '<i class="fa fa-pizza-slice fa-lg"></i>';
const faPin = new PinElement({
glyph: icon,
glyphColor: '#ff8300',
background: '#FFD514',
borderColor: '#ff8300',
});

const faMarker = new AdvancedMarkerElement({
map,
position: { lat: 37.412, lng: -122.095829650878 },
content: faPin.element,
title: 'A marker using a FontAwesome icon for the glyph.'
});
// [END maps_advanced_markers_graphics_fontawesome]
}

initMap();
Expand Down

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading