File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -119,15 +119,15 @@ export default class extends Controller
119
119
120
120
// 1. To use a custom image for the marker
121
121
const beachFlagImg = document .createElement (" img" );
122
- // Note: instead of using an hardcoded URL, you can use the `extra` parameter from `new Marker()` (PHP) and access it here with `definition.extra`.
122
+ // Note: instead of using a hardcoded URL, you can use the `extra` parameter from `new Marker()` (PHP) and access it here with `definition.extra`.
123
123
beachFlagImg .src = " https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png" ;
124
124
definition .rawOptions = {
125
125
content: beachFlagImg
126
126
}
127
127
128
128
// 2. To use a custom glyph for the marker
129
129
const pinElement = new google.maps.marker.PinElement ({
130
- // Note: instead of using an hardcoded URL, you can use the `extra` parameter from `new Marker()` (PHP) and access it here with `definition.extra`.
130
+ // Note: instead of using a hardcoded URL, you can use the `extra` parameter from `new Marker()` (PHP) and access it here with `definition.extra`.
131
131
glyph: new URL (' https://maps.gstatic.com/mapfiles/place_api/icons/v2/museum_pinlet.svg' ),
132
132
glyphColor: " white" ,
133
133
});
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export default class extends Controller
73
73
74
74
// Use a custom icon for the marker
75
75
const redIcon = L .icon ({
76
- // Note: instead of using an hardcoded URL, you can use the `extra` parameter from `new Marker()` (PHP) and access it here with `definition.extra`.
76
+ // Note: instead of using a hardcoded URL, you can use the `extra` parameter from `new Marker()` (PHP) and access it here with `definition.extra`.
77
77
iconUrl: ' https://leafletjs.com/examples/custom-icons/leaf-red.png' ,
78
78
shadowUrl: ' https://leafletjs.com/examples/custom-icons/leaf-shadow.png' ,
79
79
iconSize: [38 , 95 ], // size of the icon
You can’t perform that action at this time.
0 commit comments