Skip to content

Commit

Permalink
chore: update dist folder [skip ci]
Browse files Browse the repository at this point in the history
Former-commit-id: 0c2d9fa
Former-commit-id: 759540b3c635aa683c8756c7ae64ec34ef570fcb
  • Loading branch information
googlemaps-bot committed May 7, 2020
1 parent 213cd3d commit 484d792
Show file tree
Hide file tree
Showing 435 changed files with 49,710 additions and 2,212 deletions.
18 changes: 12 additions & 6 deletions dist/samples/add-map/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,25 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// [START maps_add_map]
// Initialize and add the map
function initMap() {
// The location of Uluru
var uluru = { lat: -25.344, lng: 131.036 };
// The map, centered at Uluru
var uluru = {
lat: -25.344,
lng: 131.036
}; // The map, centered at Uluru

var map = new google.maps.Map(document.getElementById("map"), {
zoom: 4,
center: uluru
}); // The marker, positioned at Uluru

var marker = new google.maps.Marker({
position: uluru,
map: map
});
// The marker, positioned at Uluru
var marker = new google.maps.Marker({ position: uluru, map: map });
}
} // [END maps_add_map]

exports.initMap = initMap;
})((this.window = this.window || {}));
10 changes: 8 additions & 2 deletions dist/samples/add-map/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* [START maps_add_map] */
/* Set the size of the div element that contains the map */
#map {
height: 400px;
/* The height is 400 pixels */
width: 100%;
/* The width is the width of the web page */
}

/* [END maps_add_map] */
</style>
<script>
(function(exports) {
"use strict";

/*
* Copyright 2019 Google LLC. All Rights Reserved.
*
Expand All @@ -60,8 +64,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// [START maps_add_map]
// Initialize and add the map

function initMap() {
// The location of Uluru
var uluru = {
Expand All @@ -78,7 +82,7 @@
position: uluru,
map: map
});
}
} // [END maps_add_map]

exports.initMap = initMap;
})((this.window = this.window || {}));
Expand All @@ -90,6 +94,8 @@
></script>
</head>
<body>
<!-- [START maps_add_map] -->
<div id="map"></div>
<!-- [END maps_add_map] -->
</body>
</html>
2 changes: 2 additions & 0 deletions dist/samples/add-map/jsfiddle.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
<!-- jsFiddle will insert css and js -->
</head>
<body>
<!-- [START maps_add_map] -->
<div id="map"></div>
<!-- [END maps_add_map] -->
<script
src="https://maps.googleapis.com/maps/api/js?key=&callback=initMap&libraries=&version=weekly"
async
Expand Down
8 changes: 6 additions & 2 deletions dist/samples/aerial-rotation/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// [START maps_aerial_rotation]

function initMap() {
exports.map = new google.maps.Map(document.getElementById("map"), {
center: { lat: 45.518, lng: -122.672 },
center: {
lat: 45.518,
lng: -122.672
},
zoom: 18,
mapTypeId: "satellite",
heading: 90,
Expand All @@ -37,7 +41,7 @@
if (exports.map.getTilt() !== 0) {
window.setInterval(rotate90, 3000);
}
}
} // [END maps_aerial_rotation]

exports.autoRotate = autoRotate;
exports.initMap = initMap;
Expand Down
11 changes: 8 additions & 3 deletions dist/samples/aerial-rotation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* [START maps_aerial_rotation] */
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
Expand Down Expand Up @@ -61,12 +62,13 @@
line-height: 30px;
padding-left: 10px;
}

/* [END maps_aerial_rotation] */
</style>
<script>
require("core-js/modules/es.array.map");

(function(exports) {
"use strict";

/*
* Copyright 2019 Google LLC. All Rights Reserved.
*
Expand All @@ -82,6 +84,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// [START maps_aerial_rotation]

function initMap() {
exports.map = new google.maps.Map(document.getElementById("map"), {
Expand All @@ -106,7 +109,7 @@
if (exports.map.getTilt() !== 0) {
window.setInterval(rotate90, 3000);
}
}
} // [END maps_aerial_rotation]

exports.autoRotate = autoRotate;
exports.initMap = initMap;
Expand All @@ -120,9 +123,11 @@
></script>
</head>
<body>
<!-- [START maps_aerial_rotation] -->
<div id="floating-panel">
<input type="button" value="Auto Rotate" onclick="autoRotate();" />
</div>
<div id="map"></div>
<!-- [END maps_aerial_rotation] -->
</body>
</html>
2 changes: 2 additions & 0 deletions dist/samples/aerial-rotation/jsfiddle.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
<!-- jsFiddle will insert css and js -->
</head>
<body>
<!-- [START maps_aerial_rotation] -->
<div id="floating-panel">
<input type="button" value="Auto Rotate" onclick="autoRotate();" />
</div>
<div id="map"></div>
<!-- [END maps_aerial_rotation] -->

<script
src="https://maps.googleapis.com/maps/api/js?key=&callback=initMap&libraries=&version=weekly"
Expand Down
9 changes: 6 additions & 3 deletions dist/samples/aerial-simple/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// [START maps_aerial_simple]
function initMap() {
var map = new google.maps.Map(document.getElementById("map"), {
center: { lat: 36.964, lng: -122.015 },
center: {
lat: 36.964,
lng: -122.015
},
zoom: 18,
mapTypeId: "satellite"
});
map.setTilt(45);
}
} // [END maps_aerial_simple]

exports.initMap = initMap;
})((this.window = this.window || {}));
10 changes: 8 additions & 2 deletions dist/samples/aerial-simple/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* [START maps_aerial_simple] */
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
Expand All @@ -47,10 +48,13 @@
margin: 0;
padding: 0;
}

/* [END maps_aerial_simple] */
</style>
<script>
(function(exports) {
"use strict";

/*
* Copyright 2019 Google LLC. All Rights Reserved.
*
Expand All @@ -66,7 +70,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// [START maps_aerial_simple]
function initMap() {
var map = new google.maps.Map(document.getElementById("map"), {
center: {
Expand All @@ -77,7 +81,7 @@
mapTypeId: "satellite"
});
map.setTilt(45);
}
} // [END maps_aerial_simple]

exports.initMap = initMap;
})((this.window = this.window || {}));
Expand All @@ -89,6 +93,8 @@
></script>
</head>
<body>
<!-- [START maps_aerial_simple] -->
<div id="map"></div>
<!-- [END maps_aerial_simple] -->
</body>
</html>
2 changes: 2 additions & 0 deletions dist/samples/aerial-simple/jsfiddle.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
<!-- jsFiddle will insert css and js -->
</head>
<body>
<!-- [START maps_aerial_simple] -->
<div id="map"></div>
<!-- [END maps_aerial_simple] -->
<script
src="https://maps.googleapis.com/maps/api/js?key=&callback=initMap&libraries=&version=weekly"
async
Expand Down
35 changes: 24 additions & 11 deletions dist/samples/circle-simple/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,37 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// [START maps_circle_simple]
// This example creates circles on the map, representing populations in North
// America.

// First, create an object containing LatLng and population for each city.
var citymap = {
chicago: {
center: { lat: 41.878, lng: -87.629 },
center: {
lat: 41.878,
lng: -87.629
},
population: 2714856
},
newyork: {
center: { lat: 40.714, lng: -74.005 },
center: {
lat: 40.714,
lng: -74.005
},
population: 8405837
},
losangeles: {
center: { lat: 34.052, lng: -118.243 },
center: {
lat: 34.052,
lng: -118.243
},
population: 3857799
},
vancouver: {
center: { lat: 49.25, lng: -123.1 },
center: {
lat: 49.25,
lng: -123.1
},
population: 603502
}
};
Expand All @@ -44,12 +55,14 @@
// Create the map.
var map = new google.maps.Map(document.getElementById("map"), {
zoom: 4,
center: { lat: 37.09, lng: -95.712 },
center: {
lat: 37.09,
lng: -95.712
},
mapTypeId: "terrain"
});

// Construct the circle for each value in citymap.
}); // Construct the circle for each value in citymap.
// Note: We scale the area of the circle based on the population.

for (var city in citymap) {
// Add the circle for this city to the map.
var cityCircle = new google.maps.Circle({
Expand All @@ -63,7 +76,7 @@
radius: Math.sqrt(citymap[city].population) * 100
});
}
}
} // [END maps_circle_simple]

exports.citymap = citymap;
exports.initMap = initMap;
Expand Down
10 changes: 8 additions & 2 deletions dist/samples/circle-simple/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* [START maps_circle_simple] */
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
Expand All @@ -47,10 +48,13 @@
margin: 0;
padding: 0;
}

/* [END maps_circle_simple] */
</style>
<script>
(function(exports) {
"use strict";

/*
* Copyright 2019 Google LLC. All Rights Reserved.
*
Expand All @@ -66,10 +70,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// [START maps_circle_simple]
// This example creates circles on the map, representing populations in North
// America.
// First, create an object containing LatLng and population for each city.

var citymap = {
chicago: {
center: {
Expand Down Expand Up @@ -126,7 +130,7 @@
radius: Math.sqrt(citymap[city].population) * 100
});
}
}
} // [END maps_circle_simple]

exports.citymap = citymap;
exports.initMap = initMap;
Expand All @@ -139,6 +143,8 @@
></script>
</head>
<body>
<!-- [START maps_circle_simple] -->
<div id="map"></div>
<!-- [END maps_circle_simple] -->
</body>
</html>
2 changes: 2 additions & 0 deletions dist/samples/circle-simple/jsfiddle.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
<!-- jsFiddle will insert css and js -->
</head>
<body>
<!-- [START maps_circle_simple] -->
<div id="map"></div>
<!-- [END maps_circle_simple] -->
<script
src="https://maps.googleapis.com/maps/api/js?key=&callback=initMap&libraries=&version=weekly"
async
Expand Down
Loading

0 comments on commit 484d792

Please sign in to comment.