Skip to content

Instantly share code, notes, and snippets.

@Calvein
Created December 1, 2014 22:54
Show Gist options
  • Save Calvein/394fa83b4f625ca61cb8 to your computer and use it in GitHub Desktop.
Save Calvein/394fa83b4f625ca61cb8 to your computer and use it in GitHub Desktop.
innerSVG
div = document.createElement('div')
fakeSvg = '<svg>' + markerIcon + '</svg>'
div.innerHTML = '' + fakeSvg
for el in Array::slice.call(div.childNodes[0].childNodes)
marker.node().appendChild(el)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment