Skip to content
Merged
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
4 changes: 2 additions & 2 deletions static/demo/embeded-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function plot() {
// CSS Parsing and implementing
let rawTextCSS = cssEditor.getValue();

let mapmlCSS = parser.parseFromString("<map-style>" + rawTextCSS + "</map-style>", "text/xml").querySelector('map-style');
let mapmlCSS = parser.parseFromString("<map-style>" + rawTextCSS + "</map-style>", "text/html").querySelector('map-style');

// Adding the CSS to each layer
let layers = mapml.querySelectorAll('layer-');
Expand All @@ -53,7 +53,7 @@ window.onload = (event) => {

// CSS Parsing and implementing
let rawTextCSS = cssEditor.getValue();
let mapmlCSS = parser.parseFromString("<map-style>" + rawTextCSS + "</map-style>", "text/xml").querySelector('map-style');
let mapmlCSS = parser.parseFromString("<map-style>" + rawTextCSS + "</map-style>", "text/html").querySelector('map-style');
// Adding the CSS to each layer
let layers = mapml.querySelectorAll('layer-');
for (i = 0; i < layers.length; ++i) {
Expand Down