Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -305,7 +305,7 @@ function openEditor(e) {
|
|
| 305 |
`).join("\n")}
|
| 306 |
<\/script>
|
| 307 |
`;
|
| 308 |
-
o = o.replace(/iconUrl: 'marker-icon\.png'
|
| 309 |
document.getElementById("output-html").value = o;
|
| 310 |
const input = document.getElementById('output-html').value;
|
| 311 |
const output = document.getElementById('output-code');
|
|
|
|
| 305 |
`).join("\n")}
|
| 306 |
<\/script>
|
| 307 |
`;
|
| 308 |
+
o = o.replace(/iconUrl: 'marker-icon\.png'/g, `iconUrl: '${location.origin}/marker-icon.png'`);
|
| 309 |
document.getElementById("output-html").value = o;
|
| 310 |
const input = document.getElementById('output-html').value;
|
| 311 |
const output = document.getElementById('output-code');
|