Skip to content

Commit

Permalink
docs: Adds height style attribute to gmp-map element. (#1732)
Browse files Browse the repository at this point in the history
* docs: Adds height style attribute to gmp-map element.

* docs: adds height attribute to gmp-map element

* docs: Removes style element from page

it is now inline with gmp-map
  • Loading branch information
willum070 committed May 14, 2024
1 parent 5ef7b2c commit f921b1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions samples/web-components-map/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@
SPDX-License-Identifier: Apache-2.0
-->
{% extends '../../src/_includes/layout.njk'%} {% block html %}
<!-- [START maps_web_components_map_style] -->
<style>
gmp-map {
height: 400px;
}
</style>
<!-- [END maps_web_components_map_style] -->
<!-- [START maps_web_components_map_gmpmap] -->
<gmp-map center="37.4220656,-122.0840897" zoom="10" map-id="DEMO_MAP_ID"></gmp-map>
<gmp-map center="37.4220656,-122.0840897" zoom="10" map-id="DEMO_MAP_ID" style="height: 400px"></gmp-map>
<!-- [END maps_web_components_map_gmpmap] -->
{% endblock %}
2 changes: 1 addition & 1 deletion samples/web-components-markers/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->
{% extends '../../src/_includes/layout.njk'%} {% block html %}
<!-- [START maps_web_components_markers_div] -->
<gmp-map center="43.4142989,-124.2301242" zoom="4" map-id="DEMO_MAP_ID">
<gmp-map center="43.4142989,-124.2301242" zoom="4" map-id="DEMO_MAP_ID" style="height: 400px">
<gmp-advanced-marker position="37.4220656,-122.0840897" title="Mountain View, CA"></gmp-advanced-marker>
<gmp-advanced-marker position="47.648994,-122.3503845" title="Seattle, WA"></gmp-advanced-marker>
</gmp-map>
Expand Down

0 comments on commit f921b1a

Please sign in to comment.