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
119119
120120 // 1. To use a custom image for the marker
121121 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`.
123123 beachFlagImg .src = " https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png" ;
124124 definition .rawOptions = {
125125 content: beachFlagImg
126126 }
127127
128128 // 2. To use a custom glyph for the marker
129129 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`.
131131 glyph: new URL (' https://maps.gstatic.com/mapfiles/place_api/icons/v2/museum_pinlet.svg' ),
132132 glyphColor: " white" ,
133133 });
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export default class extends Controller
7373
7474 // Use a custom icon for the marker
7575 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`.
7777 iconUrl: ' https://leafletjs.com/examples/custom-icons/leaf-red.png' ,
7878 shadowUrl: ' https://leafletjs.com/examples/custom-icons/leaf-shadow.png' ,
7979 iconSize: [38 , 95 ], // size of the icon
You can’t perform that action at this time.
0 commit comments