Skip to content
This repository has been archived by the owner on Dec 9, 2021. It is now read-only.

Commit

Permalink
chore: update eslint (#278) e6b70f1
Browse files Browse the repository at this point in the history
  • Loading branch information
googlemaps-bot committed Sep 17, 2021
1 parent 05dfb4b commit e1cee28
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 115 deletions.
104 changes: 52 additions & 52 deletions classes/default.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var data = {
let data = {
count: 10785236,
photos: [
{
Expand Down
52 changes: 26 additions & 26 deletions examples/speed_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function $(element) {
return document.getElementById(element);
}

var speedTest = {};
let speedTest = {};

speedTest.pics = null;
speedTest.map = null;
Expand All @@ -18,20 +18,19 @@ speedTest.markers = [];
speedTest.infoWindow = null;

speedTest.init = function () {
var latlng = new google.maps.LatLng(39.91, 116.38);
var options = {
let latlng = new google.maps.LatLng(39.91, 116.38);
let options = {
zoom: 2,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
};

speedTest.map = new google.maps.Map($("map"), options);
speedTest.pics = data.photos;

var useGmm = document.getElementById("usegmm");
let useGmm = document.getElementById("usegmm");
google.maps.event.addDomListener(useGmm, "click", speedTest.change);

var numMarkers = document.getElementById("nummarkers");
let numMarkers = document.getElementById("nummarkers");
google.maps.event.addDomListener(numMarkers, "change", speedTest.change);

speedTest.infoWindow = new google.maps.InfoWindow();
Expand All @@ -42,7 +41,7 @@ speedTest.init = function () {
speedTest.showMarkers = function () {
speedTest.markers = [];

var type = 1;
let type = 1;
if ($("usegmm").checked) {
type = 0;
}
Expand All @@ -51,44 +50,44 @@ speedTest.showMarkers = function () {
speedTest.markerClusterer.clearMarkers();
}

var panel = $("markerlist");
let panel = $("markerlist");
panel.innerHTML = "";
var numMarkers = $("nummarkers").value;
let numMarkers = $("nummarkers").value;

for (var i = 0; i < numMarkers; i++) {
var titleText = speedTest.pics[i].photo_title;
for (let i = 0; i < numMarkers; i++) {
let titleText = speedTest.pics[i].photo_title;
if (titleText == "") {
titleText = "No title";
}

var item = document.createElement("DIV");
var title = document.createElement("A");
let item = document.createElement("DIV");
let title = document.createElement("A");
title.href = "#";
title.className = "title";
title.innerHTML = titleText;

item.appendChild(title);
panel.appendChild(item);

var latLng = new google.maps.LatLng(
let latLng = new google.maps.LatLng(
speedTest.pics[i].latitude,
speedTest.pics[i].longitude
);

var imageUrl =
let imageUrl =
"http://chart.apis.google.com/chart?cht=mm&chs=24x32&chco=" +
"FFFFFF,008CFF,000000&ext=.png";
var markerImage = new google.maps.MarkerImage(
let markerImage = new google.maps.MarkerImage(
imageUrl,
new google.maps.Size(24, 32)
);

var marker = new google.maps.Marker({
let marker = new google.maps.Marker({
position: latLng,
icon: markerImage,
});

var fn = speedTest.markerClickFunction(speedTest.pics[i], latLng);
let fn = speedTest.markerClickFunction(speedTest.pics[i], latLng);
google.maps.event.addListener(marker, "click", fn);
google.maps.event.addDomListener(title, "click", fn);
speedTest.markers.push(marker);
Expand All @@ -105,11 +104,11 @@ speedTest.markerClickFunction = function (pic, latlng) {
e.stopPropagation();
e.preventDefault();
}
var title = pic.photo_title;
var url = pic.photo_url;
var fileurl = pic.photo_file_url;
let title = pic.photo_title;
let url = pic.photo_url;
let fileurl = pic.photo_file_url;

var infoHtml =
let infoHtml =
'<div class="info"><h3>' +
title +
'</h3><div class="info-body">' +
Expand All @@ -135,7 +134,7 @@ speedTest.markerClickFunction = function (pic, latlng) {

speedTest.clear = function () {
$("timetaken").innerHTML = "cleaning...";
for (var i = 0, marker; (marker = speedTest.markers[i]); i++) {
for (let i = 0, marker; (marker = speedTest.markers[i]); i++) {
marker.setMap(null);
}
};
Expand All @@ -147,18 +146,19 @@ speedTest.change = function () {

speedTest.time = function () {
$("timetaken").innerHTML = "timing...";
var start = new Date();
let start = new Date();
if ($("usegmm").checked) {
// eslint-disable-next-line no-undef
speedTest.markerClusterer = new MarkerClusterer(
speedTest.map,
speedTest.markers
);
} else {
for (var i = 0, marker; (marker = speedTest.markers[i]); i++) {
for (let i = 0, marker; (marker = speedTest.markers[i]); i++) {
marker.setMap(speedTest.map);
}
}

var end = new Date();
let end = new Date();
$("timetaken").innerHTML = end - start;
};
8 changes: 4 additions & 4 deletions interfaces/clustericoninfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h3>index</h3>
<div class="tsd-signature tsd-kind-icon">index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L137">cluster-icon.ts:137</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L137">cluster-icon.ts:137</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -120,7 +120,7 @@ <h3>text</h3>
<div class="tsd-signature tsd-kind-icon">text<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L133">cluster-icon.ts:133</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L133">cluster-icon.ts:133</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -135,7 +135,7 @@ <h3>title</h3>
<div class="tsd-signature tsd-kind-icon">title<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L143">cluster-icon.ts:143</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L143">cluster-icon.ts:143</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -152,7 +152,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> url</h3>
<div class="tsd-signature tsd-kind-icon">url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L147">cluster-icon.ts:147</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L147">cluster-icon.ts:147</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
28 changes: 14 additions & 14 deletions interfaces/clustericonstyle.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> anchor<wbr>Icon</h3>
<div class="tsd-signature tsd-kind-icon">anchor<wbr>Icon<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L71">cluster-icon.ts:71</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L71">cluster-icon.ts:71</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -124,7 +124,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> anchor<wbr>Text</h3>
<div class="tsd-signature tsd-kind-icon">anchor<wbr>Text<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L63">cluster-icon.ts:63</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L63">cluster-icon.ts:63</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -142,7 +142,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> background<wbr>Positi
<div class="tsd-signature tsd-kind-icon">background<wbr>Position<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L122">cluster-icon.ts:122</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L122">cluster-icon.ts:122</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -166,7 +166,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> class<wbr>Name</h3>
<div class="tsd-signature tsd-kind-icon">class<wbr>Name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L52">cluster-icon.ts:52</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L52">cluster-icon.ts:52</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -181,7 +181,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> font<wbr>Family</h3>
<div class="tsd-signature tsd-kind-icon">font<wbr>Family<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L112">cluster-icon.ts:112</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L112">cluster-icon.ts:112</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -202,7 +202,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> font<wbr>Style</h3>
<div class="tsd-signature tsd-kind-icon">font<wbr>Style<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L106">cluster-icon.ts:106</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L106">cluster-icon.ts:106</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -223,7 +223,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> font<wbr>Weight</h3>
<div class="tsd-signature tsd-kind-icon">font<wbr>Weight<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L99">cluster-icon.ts:99</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L99">cluster-icon.ts:99</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -244,7 +244,7 @@ <h3>height</h3>
<div class="tsd-signature tsd-kind-icon">height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L54">cluster-icon.ts:54</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L54">cluster-icon.ts:54</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -259,7 +259,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> text<wbr>Color</h3>
<div class="tsd-signature tsd-kind-icon">text<wbr>Color<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L76">cluster-icon.ts:76</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L76">cluster-icon.ts:76</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -279,7 +279,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> text<wbr>Decoration</
<div class="tsd-signature tsd-kind-icon">text<wbr>Decoration<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L92">cluster-icon.ts:92</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L92">cluster-icon.ts:92</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -300,7 +300,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> text<wbr>Line<wbr>Hei
<div class="tsd-signature tsd-kind-icon">text<wbr>Line<wbr>Height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L85">cluster-icon.ts:85</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L85">cluster-icon.ts:85</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -320,7 +320,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> text<wbr>Size</h3>
<div class="tsd-signature tsd-kind-icon">text<wbr>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L80">cluster-icon.ts:80</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L80">cluster-icon.ts:80</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -340,7 +340,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> url</h3>
<div class="tsd-signature tsd-kind-icon">url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L50">cluster-icon.ts:50</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L50">cluster-icon.ts:50</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -355,7 +355,7 @@ <h3>width</h3>
<div class="tsd-signature tsd-kind-icon">width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/f9757d2/src/cluster-icon.ts#L56">cluster-icon.ts:56</a></li>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclustererplus/blob/e6b70f1/src/cluster-icon.ts#L56">cluster-icon.ts:56</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit e1cee28

Please sign in to comment.