UNPKG

plastic-map-info

Version:

A more flexible infowindow for google maps

52 lines (44 loc) 1.99 kB
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> <title>plastic-map-info demo</title> <script src="../../webcomponentsjs/webcomponents-lite.js"></script> <script src="../../@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>ges-shared-styles.js"></script> <script type="module" src="../../@polymer/iron-demo-helpers/demo-snippet.js"></script> <script type="module" src="../plastic-map-info.js"></script> <custom-style> <style is="custom-style" include="demo-pages-shared-styles"> </style> </custom-style> </<!-- FIXME(polymer-modulizer): These imperative modules that innerHTML your HTML are a hacky way to be sure that any mixins in included style modules are ready before any elements that reference them are instantiated, otherwise the CSS @apply mixin polyfill won't be able to expand the underlying CSS custom properties. See: https://github.com/Polymer/polymer-modulizer/issues/154 --> <script type="module"> const $_documentContainer = document.createElement('template'); $_documentContainer.innerHTML = `<custom-style> <style is="custom-style" include="demo-pages-shared-styles"> </style> </custom-style>`; document.body.appendChild($_documentContainer.content); </script>stic-map-info demo</h3> <demo-snippet> <template> <script type="module"> const $_documentContainer = document.createElement('template'); $_documentContainer.innerHTML = `<div class="vertical-section-container centered"> <h3>Basic plastic-map-info demo</h3> <demo-snippet> <template> <plastic-map-info></plastic-map-info> </template> </demo-snippet> </div>`; document.body.appendChild($_documentContainer.content); </script>