google-web-component

creating a google map with marker using web-component

让人想犯罪 __ 提交于 2019-12-24 00:53:25
问题 I'm trying to use polymer and web-component to display some markers in the google-map. Here's my code : <!DOCTYPE html> <html> <head lang="fr"> <meta charset="UTF-8"> <title></title> <script src="bower_components/platform/platform.js"></script> <link rel="import" href="bower_components/polymer/polymer.html"> <link rel="import" href="bower_components/google-apis/google-apis.html"> <link rel="import" href="bower_components/google-map/google-map.html"> <script> var airdromes = [ { "name" :

Using Google Web Components elements in polymer 3

一世执手 提交于 2019-12-10 19:53:29
问题 How can we install Google Web Components elements in polymer 3 Example - using google-youtube or many more elements can't support npm install yet! https://www.webcomponents.org/element/GoogleWebComponents/google-youtube Is anyone figured out installing this for polymer 3. 回答1: You could try to install it will polymer modulizer npm install -g polymer-modulizer you'll need to have bower installed as well, then in your repo you can run modulizer GoogleWebComponents/google-youtube that will

Polymer DomModule already defined

懵懂的女人 提交于 2019-12-01 18:42:50
问题 I'm building a website, where I'd use different polymer components, some of them multiple times. My problem is that the compiled code contains a customElements.define('dom-module', DomModule); that throws Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry at CustomElementRegistry.value I have no idea how to resolve this. 回答1: If you include polymer using two different paths in two different components, both of them