feat: Refactors the 3d-camera-boundary sample to latest standards.#1415
Open
feat: Refactors the 3d-camera-boundary sample to latest standards.#1415
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR does the following things:
<div id="map"></div>element inindex.htmlwith a<gmp-map-3d>web component.Key changes:
Migration to web component:
<div id="map"></div>element inindex.htmlwith a<gmp-map-3d>web component, setting its initial center, tilt, mode, and gesture handling via attributes. (samples/3d-camera-boundary/index.htmlsamples/3d-camera-boundary/index.htmlL22-R28)index.tsto select thegmp-map-3delement and set itsboundsproperty directly, removing the previous instantiation ofMap3DElementin JavaScript. (samples/3d-camera-boundary/index.tssamples/3d-camera-boundary/index.tsL3-R19)Code and dependency cleanup:
mapdiv, leaving only essential styling. (samples/3d-camera-boundary/style.csssamples/3d-camera-boundary/style.cssL3-L14)package.jsonby removing the emptydependenciessection. (samples/3d-camera-boundary/package.jsonsamples/3d-camera-boundary/package.jsonL10-L12)Other updates:
samples/3d-camera-boundary/index.html[1]samples/3d-camera-boundary/index.ts[2]samples/3d-camera-boundary/style.css[3]