Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions samples/add-map/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
4 changes: 2 additions & 2 deletions samples/add-map/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 maps_add_map_html_body] -->
<!-- [START maps_add_map] -->
<div id="map"></div>
<!-- [END maps_add_map_html_body] -->
<!-- [END maps_add_map] -->
{% endblock %}
4 changes: 2 additions & 2 deletions samples/add-map/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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] */
4 changes: 2 additions & 2 deletions samples/aerial-rotation/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

// [START maps_aerial_rotation_script_body]
// [START maps_aerial_rotation]
export var map;

export function initMap() {
Expand All @@ -38,4 +38,4 @@ export function autoRotate() {
window.setInterval(rotate90, 3000);
}
}
// [END maps_aerial_rotation_script_body]
// [END maps_aerial_rotation]
4 changes: 2 additions & 2 deletions samples/aerial-rotation/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
{% extends '../../../shared/layout.njk'%} {% block html %}
<!-- [START maps_aerial_rotation_html_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_html_body] -->
<!-- [END maps_aerial_rotation] -->

{% endblock %}
4 changes: 2 additions & 2 deletions samples/aerial-rotation/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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] */
4 changes: 2 additions & 2 deletions samples/aerial-simple/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand All @@ -23,4 +23,4 @@ export function initMap() {
});
map.setTilt(45);
}
// [END maps_aerial_simple_script_body]
// [END maps_aerial_simple]
4 changes: 2 additions & 2 deletions samples/aerial-simple/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 maps_aerial_simple_html_body] -->
<!-- [START maps_aerial_simple] -->
<div id="map"></div>
<!-- [END maps_aerial_simple_html_body] -->
<!-- [END maps_aerial_simple] -->
{% endblock %}
4 changes: 2 additions & 2 deletions samples/aerial-simple/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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] */
4 changes: 2 additions & 2 deletions samples/circle-simple/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -62,4 +62,4 @@ export function initMap() {
});
}
}
// [END maps_circle_simple_script_body]
// [END maps_circle_simple]
4 changes: 2 additions & 2 deletions samples/circle-simple/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 maps_circle_simple_html_body] -->
<!-- [START maps_circle_simple] -->
<div id="map"></div>
<!-- [END maps_circle_simple_html_body] -->
<!-- [END maps_circle_simple] -->
{% endblock %}
4 changes: 2 additions & 2 deletions samples/circle-simple/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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] */
4 changes: 2 additions & 2 deletions samples/combining-data/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

// [START maps_combining_data_script_body]
// [START maps_combining_data]
export var mapStyle = [
{
stylers: [{ visibility: "off" }]
Expand Down Expand Up @@ -217,4 +217,4 @@ export function mouseOutOfRegion(e) {
}
// [END maps_combining_data_snippet_mouseevents]

// [END maps_combining_data_script_body]
// [END maps_combining_data]
4 changes: 2 additions & 2 deletions samples/combining-data/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 maps_combining_data_html_body] -->
<!-- [START maps_combining_data] -->
<div id="controls" class="nicebox">
<div>
<select id="census-variable">
Expand Down Expand Up @@ -47,6 +47,6 @@ limitations under the License.
<span id="data-value"></span>
</div>
<div id="map"></div>
<!-- [END maps_combining_data_html_body] -->
<!-- [END maps_combining_data] -->

{% endblock %}
4 changes: 2 additions & 2 deletions samples/combining-data/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

/* [START maps_combining_data_css] */
/* [START maps_combining_data] */
html,
body,
#map {
Expand Down Expand Up @@ -97,4 +97,4 @@ body,
font-size: 14px;
width: 14px;
}
/* [END maps_combining_data_css] */
/* [END maps_combining_data] */
4 changes: 2 additions & 2 deletions samples/conserve-map-on-scroll/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

// [START maps_conserve_map_on_scroll_script_body]
// [START maps_conserve_map_on_scroll]
// [START maps_conserve_map_script_snippet]
export function initMap() {
var locationRio = { lat: -22.915, lng: -43.197 };
Expand All @@ -30,4 +30,4 @@ export function initMap() {
title: "Hello World!"
});
}
// [END maps_conserve_map_on_scroll_script_body]
// [END maps_conserve_map_on_scroll]
4 changes: 2 additions & 2 deletions samples/conserve-map-on-scroll/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 maps_conserve_map_on_scroll_html_body] -->
<!-- [START maps_conserve_map_on_scroll] -->
<div id="map"></div>
<!-- [END maps_conserve_map_on_scroll_html_body] -->
<!-- [END maps_conserve_map_on_scroll] -->
{% endblock %}
4 changes: 2 additions & 2 deletions samples/conserve-map-on-scroll/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

/*! [START maps_conserve_map_on_scroll_css] */
/*! [START maps_conserve_map_on_scroll] */
@import "../../../shared/scss/default.scss";

/*! [END maps_conserve_map_on_scroll_css] */
/*! [END maps_conserve_map_on_scroll] */
4 changes: 2 additions & 2 deletions samples/control-bounds-restriction/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

// [START maps_control_bounds_restriction_script_body]
// [START maps_control_bounds_restriction]
export var map;
export var NEW_ZEALAND_BOUNDS = {
north: -34.36,
Expand All @@ -34,4 +34,4 @@ export function initMap() {
zoom: 7
});
}
// [END maps_control_bounds_restriction_script_body]
// [END maps_control_bounds_restriction]
4 changes: 2 additions & 2 deletions samples/control-bounds-restriction/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 maps_control_bounds_restriction_html_body] -->
<!-- [START maps_control_bounds_restriction] -->
<div id="map"></div>
<!-- [END maps_control_bounds_restriction_html_body] -->
<!-- [END maps_control_bounds_restriction] -->
{% endblock %}
4 changes: 2 additions & 2 deletions samples/control-bounds-restriction/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

/*! [START maps_control_bounds_restriction_css] */
/*! [START maps_control_bounds_restriction] */
@import "../../../shared/scss/default.scss";

/*! [END maps_control_bounds_restriction_css] */
/*! [END maps_control_bounds_restriction] */
4 changes: 2 additions & 2 deletions samples/control-custom-state/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

// [START maps_control_custom_state_script_body]
// [START maps_control_custom_state]
export var map;
export var chicago = { lat: 41.85, lng: -87.65 };

Expand Down Expand Up @@ -113,4 +113,4 @@ export function initMap() {
centerControlDiv.style["padding-top"] = "10px";
map.controls[google.maps.ControlPosition.TOP_CENTER].push(centerControlDiv);
}
// [END maps_control_custom_state_script_body]
// [END maps_control_custom_state]
4 changes: 2 additions & 2 deletions samples/control-custom-state/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 maps_control_custom_state_html_body] -->
<!-- [START maps_control_custom_state] -->
<div id="map"></div>
<!-- [END maps_control_custom_state_html_body] -->
<!-- [END maps_control_custom_state] -->
{% endblock %}
4 changes: 2 additions & 2 deletions samples/control-custom-state/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

/*! [START maps_control_custom_state_css] */
/*! [START maps_control_custom_state] */
@import "../../../shared/scss/default.scss";
@import "../../../shared/scss/custom-control-state.scss";

/*! [END maps_control_custom_state_css] */
/*! [END maps_control_custom_state] */
4 changes: 2 additions & 2 deletions samples/control-custom/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

// [START maps_control_custom_script_body]
// [START maps_control_custom]
export var map;
export var chicago = { lat: 41.85, lng: -87.65 };

Expand Down Expand Up @@ -68,4 +68,4 @@ export function initMap() {
centerControlDiv.index = 1;
map.controls[google.maps.ControlPosition.TOP_CENTER].push(centerControlDiv);
}
// [END maps_control_custom_script_body]
// [END maps_control_custom]
4 changes: 2 additions & 2 deletions samples/control-custom/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 maps_control_custom_html_body] -->
<!-- [START maps_control_custom] -->
<div id="map"></div>
<!-- [END maps_control_custom_html_body] -->
<!-- [END maps_control_custom] -->
{% endblock %}
4 changes: 2 additions & 2 deletions samples/control-custom/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

/*! [START maps_control_custom_css] */
/*! [START maps_control_custom] */
@import "../../../shared/scss/default.scss";

/*! [END maps_control_custom_css] */
/*! [END maps_control_custom] */
4 changes: 2 additions & 2 deletions samples/control-default/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* limitations under the License.
*/

// [START maps_control_default_script_body]
// [START maps_control_default]
export function initMap() {
var map = new google.maps.Map(document.getElementById("map"), {
center: { lat: -34.397, lng: 150.644 },
zoom: 8
});
}
// [END maps_control_default_script_body]
// [END maps_control_default]
4 changes: 2 additions & 2 deletions samples/control-default/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 maps_control_default_html_body] -->
<!-- [START maps_control_default] -->
<div id="map"></div>
<!-- [END maps_control_default_html_body] -->
<!-- [END maps_control_default] -->
{% endblock %}
4 changes: 2 additions & 2 deletions samples/control-default/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

/*! [START maps_control_default_css] */
/*! [START maps_control_default] */
@import "../../../shared/scss/default.scss";

/*! [END maps_control_default_css] */
/*! [END maps_control_default] */
4 changes: 2 additions & 2 deletions samples/control-disableUI/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* limitations under the License.
*/

// [START maps_control_disableUI_script_body]
// [START maps_control_disableUI]
export function initMap() {
var map = new google.maps.Map(document.getElementById("map"), {
zoom: 4,
center: { lat: -33, lng: 151 },
disableDefaultUI: true
});
}
// [END maps_control_disableUI_script_body]
// [END maps_control_disableUI]
4 changes: 2 additions & 2 deletions samples/control-disableUI/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 maps_control_disableUI_html_body] -->
<!-- [START maps_control_disableUI] -->
<div id="map"></div>
<!-- [END maps_control_disableUI_html_body] -->
<!-- [END maps_control_disableUI] -->
{% endblock %}
Loading