Skip to content

Commit

Permalink
changed component name
Browse files Browse the repository at this point in the history
  • Loading branch information
SPAHI4 committed Jan 24, 2017
1 parent d01b2ac commit 5e43ba4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# \<google-map-custom-maker\>
# \<google-map-custom-overlay\>



Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-map-custom-maker",
"main": "google-map-custom-maker.html",
"name": "google-map-custom-overlay",
"main": "google-map-custom-overlay.html",
"dependencies": {
"google-map": "GoogleWebComponents/google-map#^1.2.0"
},
Expand Down
6 changes: 3 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
<link rel="import" href="../../google-map/google-map-elements.html">
<link rel="import" href="../google-map-custom-maker.html">
<link rel="import" href="../google-map-custom-overlay.html">

<style is="custom-style" include="demo-pages-shared-styles">

Expand Down Expand Up @@ -50,9 +50,9 @@ <h3>Basic google-map-custom-maker demo</h3>
<google-map latitude="37.77493" longitude="-122.41942" fit-to-markers
api-key="AIzaSyDtwbkcg7mLu-h4J_UydSkF2KtrBtdGuTk">
<template is="dom-repeat" items="{{markers}}">
<google-map-custom-marker latitude="{{item.lat}}" longitude="{{item.lng}}" position="left">
<google-map-custom-overlay latitude="{{item.lat}}" longitude="{{item.lng}}" position="left">
<div class="mymarker">Custom Marker {{index}}</div>
</google-map-custom-marker>
</google-map-custom-overlay>
</template>
</google-map>
</template>
Expand Down
10 changes: 5 additions & 5 deletions google-map-custom-maker.html → google-map-custom-overlay.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@
@demo demo/index.html
The `google-map-custom-marker` element represents a custom map marker. It is used as a
The `google-map-custom-overlay` element represents a custom map marker. It is used as a
child of `google-map`.
<b>Example</b>:
<google-map latitude="37.77493" longitude="-122.41942">
<google-map-custom-marker latitude="37.779" longitude="-122.3892"
<google-map-custom-overlay latitude="37.779" longitude="-122.3892"
position="bottom">
<div class="my-marker">
Custom marker
</div>
</google-map-custom-marker>
</google-map-custom-overlay>
</google-map>
-->

<dom-module id="google-map-custom-marker">
<dom-module id="google-map-custom-overlay">
<style>
:host {
display: none;
Expand All @@ -42,7 +42,7 @@

Polymer({

is: 'google-map-custom-marker',
is: 'google-map-custom-overlay',

/**
* @event click
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
<link rel="import" href="../iron-component-page/iron-component-page.html">
</head>
<body>
<iron-component-page src="google-map-custom-maker.html"></iron-component-page>
<iron-component-page src="google-map-custom-overlay.html"></iron-component-page>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../web-component-tester/browser.js"></script>

<link rel="import" href="../google-map-custom-maker.html">
<link rel="import" href="../google-map-custom-overlay.html">
</head>
<body>
<test-fixture id="basic">
<template>
<google-map-custom-maker></google-map-custom-maker>
<google-map-custom-overlay></google-map-custom-overlay>
</template>
</test-fixture>

<script>
suite('google-map-custom-maker', function() {
suite('google-map-custom-overlay', function() {
test('instantiating the element works', function() {
var element = fixture('basic');
assert.equal(element.is, 'google-map-custom-maker');
assert.equal(element.is, 'google-map-custom-overlay');
});
});
</script>
Expand Down

0 comments on commit 5e43ba4

Please sign in to comment.