Skip to content

Commit

Permalink
removed Polymer from dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
SPAHI4 committed Jan 24, 2017
1 parent 124fd8e commit d01b2ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "google-map-custom-maker",
"main": "google-map-custom-maker.html",
"dependencies": {
"polymer": "Polymer/polymer#^1.4.0",
"google-map": "GoogleWebComponents/google-map#^1.2.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<script>
/* this script must run before Polymer is imported */
window.Polymer = {
dom: 'shadow',
dom: 'shady',
lazyRegister: true
};
</script>
Expand Down Expand Up @@ -60,9 +60,9 @@ <h3>Basic google-map-custom-maker demo</h3>
</div>
<script>

var t = document.querySelector('#tpl');
var markers = [ { lat: "37.777", lng: "-122.38423" }, { lat: "37.777", lng: "-122.38123" } ];
t.markers = markers;
var t = document.querySelector('#tpl');
var markers = [{ lat: "37.777", lng: "-122.38423" }, { lat: "37.777", lng: "-122.38123" }];
t.markers = markers;
</script>
</body>
</html>
3 changes: 2 additions & 1 deletion google-map-custom-maker.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,9 @@
this.latlng = new google.maps.LatLng(parseFloat(lat), parseFloat(lng));
this.args = args;
this.setMap(map);

// FIXME: doesn't work with shadowDom
this.marker = marker.cloneNode(true);
console.log(marker, this.marker);
}

CustomMarker.prototype = new google.maps.OverlayView();
Expand Down

0 comments on commit d01b2ac

Please sign in to comment.