diff --git a/samples/add-map/src/index.js b/samples/add-map/src/index.js index 25acf1a38e..35e672adf1 100644 --- a/samples/add-map/src/index.js +++ b/samples/add-map/src/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ -// [START maps_add_map_script_body] +// [START maps_add_map] // Initialize and add the map export function initMap() { // The location of Uluru @@ -27,4 +27,4 @@ export function initMap() { // The marker, positioned at Uluru var marker = new google.maps.Marker({ position: uluru, map: map }); } -// [END maps_add_map_script_body] +// [END maps_add_map] diff --git a/samples/add-map/src/index.njk b/samples/add-map/src/index.njk index 594bd01f3d..cd67e7ae1a 100644 --- a/samples/add-map/src/index.njk +++ b/samples/add-map/src/index.njk @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> {% extends '../../../shared/layout.njk'%} {% block html %} - +
- + {% endblock %} diff --git a/samples/add-map/src/style.scss b/samples/add-map/src/style.scss index e42bb3530a..5c50866a73 100644 --- a/samples/add-map/src/style.scss +++ b/samples/add-map/src/style.scss @@ -14,10 +14,10 @@ * limitations under the License. */ -/* [START maps_add_map_css] */ +/* [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_css] */ +/* [END maps_add_map] */ diff --git a/samples/aerial-rotation/src/index.js b/samples/aerial-rotation/src/index.js index dd7fd7059f..b6cc1c31c2 100644 --- a/samples/aerial-rotation/src/index.js +++ b/samples/aerial-rotation/src/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ -// [START maps_aerial_rotation_script_body] +// [START maps_aerial_rotation] export var map; export function initMap() { @@ -38,4 +38,4 @@ export function autoRotate() { window.setInterval(rotate90, 3000); } } -// [END maps_aerial_rotation_script_body] +// [END maps_aerial_rotation] diff --git a/samples/aerial-rotation/src/index.njk b/samples/aerial-rotation/src/index.njk index e322a771f1..5deac02e0a 100644 --- a/samples/aerial-rotation/src/index.njk +++ b/samples/aerial-rotation/src/index.njk @@ -14,11 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. --> {% extends '../../../shared/layout.njk'%} {% block html %} - +
- + {% endblock %} diff --git a/samples/aerial-rotation/src/style.scss b/samples/aerial-rotation/src/style.scss index 6b7a121d8c..61b375f3b4 100644 --- a/samples/aerial-rotation/src/style.scss +++ b/samples/aerial-rotation/src/style.scss @@ -14,8 +14,8 @@ * limitations under the License. */ -/*! [START maps_aerial_rotation_css] */ +/*! [START maps_aerial_rotation] */ @import "../../../shared/scss/default.scss"; @import "../../../shared/scss/floating-panel.scss"; -/*! [END maps_aerial_rotation_css] */ +/*! [END maps_aerial_rotation] */ diff --git a/samples/aerial-simple/src/index.js b/samples/aerial-simple/src/index.js index 7514989d66..d7128368d5 100644 --- a/samples/aerial-simple/src/index.js +++ b/samples/aerial-simple/src/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ -// [START maps_aerial_simple_script_body] +// [START maps_aerial_simple] export function initMap() { var map = new google.maps.Map(document.getElementById("map"), { center: { lat: 36.964, lng: -122.015 }, @@ -23,4 +23,4 @@ export function initMap() { }); map.setTilt(45); } -// [END maps_aerial_simple_script_body] +// [END maps_aerial_simple] diff --git a/samples/aerial-simple/src/index.njk b/samples/aerial-simple/src/index.njk index edabfd876b..0afe25ff33 100644 --- a/samples/aerial-simple/src/index.njk +++ b/samples/aerial-simple/src/index.njk @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> {% extends '../../../shared/layout.njk'%} {% block html %} - +
- + {% endblock %} diff --git a/samples/aerial-simple/src/style.scss b/samples/aerial-simple/src/style.scss index 01eb13872b..cecf0f7ffd 100644 --- a/samples/aerial-simple/src/style.scss +++ b/samples/aerial-simple/src/style.scss @@ -14,7 +14,7 @@ * limitations under the License. */ -/*! [START maps_aerial_simple_css] */ +/*! [START maps_aerial_simple] */ @import "../../../shared/scss/default.scss"; -/*! [END maps_aerial_simple_css] */ +/*! [END maps_aerial_simple] */ diff --git a/samples/circle-simple/src/index.js b/samples/circle-simple/src/index.js index ce94f9d98b..99ac6f71c2 100644 --- a/samples/circle-simple/src/index.js +++ b/samples/circle-simple/src/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ -// [START maps_circle_simple_script_body] +// [START maps_circle_simple] // This example creates circles on the map, representing populations in North // America. @@ -62,4 +62,4 @@ export function initMap() { }); } } -// [END maps_circle_simple_script_body] +// [END maps_circle_simple] diff --git a/samples/circle-simple/src/index.njk b/samples/circle-simple/src/index.njk index 39fa3783a5..926513b675 100644 --- a/samples/circle-simple/src/index.njk +++ b/samples/circle-simple/src/index.njk @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> {% extends '../../../shared/layout.njk'%} {% block html %} - +
- + {% endblock %} diff --git a/samples/circle-simple/src/style.scss b/samples/circle-simple/src/style.scss index 6df349b732..7273050fb5 100644 --- a/samples/circle-simple/src/style.scss +++ b/samples/circle-simple/src/style.scss @@ -14,7 +14,7 @@ * limitations under the License. */ -/*! [START maps_circle_simple_css] */ +/*! [START maps_circle_simple] */ @import "../../../shared/scss/default.scss"; -/*! [END maps_circle_simple_css] */ +/*! [END maps_circle_simple] */ diff --git a/samples/combining-data/src/index.js b/samples/combining-data/src/index.js index 92824d819d..d68f2172dc 100644 --- a/samples/combining-data/src/index.js +++ b/samples/combining-data/src/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ -// [START maps_combining_data_script_body] +// [START maps_combining_data] export var mapStyle = [ { stylers: [{ visibility: "off" }] @@ -217,4 +217,4 @@ export function mouseOutOfRegion(e) { } // [END maps_combining_data_snippet_mouseevents] -// [END maps_combining_data_script_body] +// [END maps_combining_data] diff --git a/samples/combining-data/src/index.njk b/samples/combining-data/src/index.njk index 91e44f2fa1..683a304ee1 100644 --- a/samples/combining-data/src/index.njk +++ b/samples/combining-data/src/index.njk @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> {% extends '../../../shared/layout.njk'%} {% block html %} - +
@@ -49,5 +49,5 @@ limitations under the License.
 
- + {% endblock %} diff --git a/samples/directions-complex/src/style.scss b/samples/directions-complex/src/style.scss index ac902256b2..d408c61edd 100644 --- a/samples/directions-complex/src/style.scss +++ b/samples/directions-complex/src/style.scss @@ -14,7 +14,7 @@ * limitations under the License. */ -/* [START maps_directions_complex_css] */ +/* [START maps_directions_complex] */ @import "../../../shared/scss/default.scss"; @import "../../../shared/scss/floating-panel.scss"; @@ -23,4 +23,4 @@ height: 10%; text-align: center; } -/* [END maps_directions_complex_css] */ +/* [END maps_directions_complex] */ diff --git a/samples/directions-draggable/src/index.js b/samples/directions-draggable/src/index.js index 4ae37fe7f2..6cea01a8eb 100644 --- a/samples/directions-draggable/src/index.js +++ b/samples/directions-draggable/src/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ -// [START maps_directions_draggable_script_body] +// [START maps_directions_draggable] export function initMap() { var map = new google.maps.Map(document.getElementById("map"), { zoom: 4, @@ -71,4 +71,4 @@ export function computeTotalDistance(result) { total = total / 1000; document.getElementById("total").innerHTML = total + " km"; } -// [END maps_directions_draggable_script_body] +// [END maps_directions_draggable] diff --git a/samples/directions-draggable/src/index.njk b/samples/directions-draggable/src/index.njk index 2babc45c66..6ad6f962f9 100644 --- a/samples/directions-draggable/src/index.njk +++ b/samples/directions-draggable/src/index.njk @@ -14,10 +14,10 @@ See the License for the specific language governing permissions and limitations under the License. --> {% extends '../../../shared/layout.njk'%} {% block html %} - +

Total Distance:

- + {% endblock %} diff --git a/samples/directions-draggable/src/style.scss b/samples/directions-draggable/src/style.scss index 38bd18d0d3..6e20806b5b 100644 --- a/samples/directions-draggable/src/style.scss +++ b/samples/directions-draggable/src/style.scss @@ -14,7 +14,7 @@ * limitations under the License. */ -/* [START maps_directions_draggable_css] */ +/* [START maps_directions_draggable] */ @import "../../../shared/scss/right-panel.scss"; html, @@ -38,4 +38,4 @@ body { height: 100%; overflow: auto; } -/* [END maps_directions_draggable_css] */ +/* [END maps_directions_draggable] */ diff --git a/samples/directions-panel/src/index.js b/samples/directions-panel/src/index.js index c6bf50b21a..2f62631bd8 100644 --- a/samples/directions-panel/src/index.js +++ b/samples/directions-panel/src/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ -// [START maps_directions_panel_script_body] +// [START maps_directions_panel] export function initMap() { var directionsRenderer = new google.maps.DirectionsRenderer(); var directionsService = new google.maps.DirectionsService(); @@ -57,4 +57,4 @@ export function calculateAndDisplayRoute( } ); } -// [END maps_directions_panel_script_body] +// [END maps_directions_panel] diff --git a/samples/directions-panel/src/index.njk b/samples/directions-panel/src/index.njk index 55c479450f..bb1274eccb 100644 --- a/samples/directions-panel/src/index.njk +++ b/samples/directions-panel/src/index.njk @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> {% extends '../../../shared/layout.njk'%} {% block html %} - +
Start: @@ -48,5 +48,5 @@ limitations under the License.
- + {% endblock %} diff --git a/samples/directions-simple/src/style.scss b/samples/directions-simple/src/style.scss index e34b93a978..f7786a9bb7 100644 --- a/samples/directions-simple/src/style.scss +++ b/samples/directions-simple/src/style.scss @@ -14,8 +14,8 @@ * limitations under the License. */ -/*! [START maps_directions_simple_css] */ +/*! [START maps_directions_simple] */ @import "../../../shared/scss/default.scss"; @import "../../../shared/scss/floating-panel.scss"; -/*! [END maps_directions_simple_css] */ +/*! [END maps_directions_simple] */ diff --git a/samples/directions-travel-modes/src/index.js b/samples/directions-travel-modes/src/index.js index e26bda7119..26076a63bb 100644 --- a/samples/directions-travel-modes/src/index.js +++ b/samples/directions-travel-modes/src/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ -// [START maps_directions_travel_modes_script_body] +// [START maps_directions_travel_modes] export function initMap() { var directionsRenderer = new google.maps.DirectionsRenderer(); var directionsService = new google.maps.DirectionsService(); @@ -53,4 +53,4 @@ export function calculateAndDisplayRoute( } ); } -// [END maps_directions_travel_modes_script_body] +// [END maps_directions_travel_modes] diff --git a/samples/directions-travel-modes/src/index.njk b/samples/directions-travel-modes/src/index.njk index 0421a807c3..7827f77fb3 100644 --- a/samples/directions-travel-modes/src/index.njk +++ b/samples/directions-travel-modes/src/index.njk @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> {% extends '../../../shared/layout.njk'%} {% block html %} - +
Mode of Travel:
- + {% endblock %} diff --git a/samples/directions-travel-modes/src/style.scss b/samples/directions-travel-modes/src/style.scss index a890b85394..d413e06d54 100644 --- a/samples/directions-travel-modes/src/style.scss +++ b/samples/directions-travel-modes/src/style.scss @@ -14,8 +14,8 @@ * limitations under the License. */ -/*! [START maps_directions_travel_modes_css] */ +/*! [START maps_directions_travel_modes] */ @import "../../../shared/scss/default.scss"; @import "../../../shared/scss/floating-panel.scss"; -/*! [END maps_directions_travel_modes_css] */ +/*! [END maps_directions_travel_modes] */ diff --git a/samples/directions-waypoints/src/index.js b/samples/directions-waypoints/src/index.js index 1c46816e4c..a99f856422 100644 --- a/samples/directions-waypoints/src/index.js +++ b/samples/directions-waypoints/src/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ -// [START maps_directions_waypoints_script_body] +// [START maps_directions_waypoints] export function initMap() { var directionsService = new google.maps.DirectionsService(); var directionsRenderer = new google.maps.DirectionsRenderer(); @@ -73,4 +73,4 @@ export function calculateAndDisplayRoute( } ); } -// [END maps_directions_waypoints_script_body] +// [END maps_directions_waypoints] diff --git a/samples/directions-waypoints/src/index.njk b/samples/directions-waypoints/src/index.njk index 619103f4f0..d3e9cb745b 100644 --- a/samples/directions-waypoints/src/index.njk +++ b/samples/directions-waypoints/src/index.njk @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> {% extends '../../../shared/layout.njk'%} {% block html %} - +
@@ -50,6 +50,6 @@ limitations under the License.
- + {% endblock %} diff --git a/samples/directions-waypoints/src/style.scss b/samples/directions-waypoints/src/style.scss index 489a06de6a..2914660524 100644 --- a/samples/directions-waypoints/src/style.scss +++ b/samples/directions-waypoints/src/style.scss @@ -14,7 +14,7 @@ * limitations under the License. */ -/* [START maps_directions_waypoints_css] */ +/* [START maps_directions_waypoints] */ @import "../../../shared/scss/right-panel.scss"; html, @@ -45,4 +45,4 @@ body { overflow: scroll; height: 174px; } -/* [END maps_directions_waypoints_css] */ +/* [END maps_directions_waypoints] */ diff --git a/samples/disable-zoom-and-pan/src/index.js b/samples/disable-zoom-and-pan/src/index.js index e0b80e9e00..c7723f72bf 100644 --- a/samples/disable-zoom-and-pan/src/index.js +++ b/samples/disable-zoom-and-pan/src/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ -// [START maps_disable_zoom_and_pan_script_body] +// [START maps_disable_zoom_and_pan] // [START maps_disable_zoom_and_pan_script_snippet] export function initMap() { var locationRio = { lat: -22.915, lng: -43.197 }; @@ -31,4 +31,4 @@ export function initMap() { title: "Hello World!" }); } -// [END maps_disable_zoom_and_pan_script_body] +// [END maps_disable_zoom_and_pan] diff --git a/samples/disable-zoom-and-pan/src/index.njk b/samples/disable-zoom-and-pan/src/index.njk index 1ecf7a4d17..e68824581d 100644 --- a/samples/disable-zoom-and-pan/src/index.njk +++ b/samples/disable-zoom-and-pan/src/index.njk @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> {% extends '../../../shared/layout.njk'%} {% block html %} - +
- + {% endblock %} diff --git a/samples/disable-zoom-and-pan/src/style.scss b/samples/disable-zoom-and-pan/src/style.scss index bd499ef64a..7a93319de2 100644 --- a/samples/disable-zoom-and-pan/src/style.scss +++ b/samples/disable-zoom-and-pan/src/style.scss @@ -14,7 +14,7 @@ * limitations under the License. */ -/*! [START maps_disable_zoom_and_pan_css] */ +/*! [START maps_disable_zoom_and_pan] */ @import "../../../shared/scss/default.scss"; -/*! [END maps_disable_zoom_and_pan_css] */ +/*! [END maps_disable_zoom_and_pan] */ diff --git a/samples/distance-matrix/src/index.js b/samples/distance-matrix/src/index.js index 93d6e92b0c..9f2042b057 100644 --- a/samples/distance-matrix/src/index.js +++ b/samples/distance-matrix/src/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ -// [START maps_distance_matrix_script_body] +// [START maps_distance_matrix] export function initMap() { var bounds = new google.maps.LatLngBounds(); var markersArray = []; @@ -107,4 +107,4 @@ export function deleteMarkers(markersArray) { } markersArray = []; } -// [END maps_distance_matrix_script_body] +// [END maps_distance_matrix] diff --git a/samples/distance-matrix/src/index.njk b/samples/distance-matrix/src/index.njk index 3c6bf5a284..4228fc2504 100644 --- a/samples/distance-matrix/src/index.njk +++ b/samples/distance-matrix/src/index.njk @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> {% extends '../../../shared/layout.njk'%} {% block html %} - +
@@ -31,5 +31,5 @@ var destinationB = {lat: 50.087, lng: 14.421};
   
- + {% endblock %} diff --git a/samples/distance-matrix/src/style.scss b/samples/distance-matrix/src/style.scss index dc47c297ba..6a8e24f90b 100644 --- a/samples/distance-matrix/src/style.scss +++ b/samples/distance-matrix/src/style.scss @@ -14,7 +14,7 @@ * limitations under the License. */ -/* [START maps_distance_matrix_css] */ +/* [START maps_distance_matrix] */ @import "../../../shared/scss/right-panel.scss"; html, @@ -35,4 +35,4 @@ body { #output { font-size: 11px; } -/* [END maps_distance_matrix_css] */ +/* [END maps_distance_matrix] */ diff --git a/samples/drawing-tools/src/index.js b/samples/drawing-tools/src/index.js index 191356b18f..6d2f4cf1fb 100644 --- a/samples/drawing-tools/src/index.js +++ b/samples/drawing-tools/src/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ -// [START maps_drawing_tools_script_body] +// [START maps_drawing_tools] // This example requires the Drawing library. Include the libraries=drawing // parameter when you first load the API. For example: //