Conversation
Demonstrates hybrid (satellite) map initialization with mapTypeId and the built-in map type control for switching between roadmap and satellite.
gaelsimon
previously approved these changes
Mar 5, 2026
Member
Author
|
I'll probably revisit this PR when We'll be able to publish typedefs again |
… supports mapTypeId
gaelsimon
approved these changes
Mar 5, 2026
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.
Issue
Companion to Woosmap/maps-js#1494 which adds
mapTypeIdsupport (ROADMAP & HYBRID) to the Map JS SDK.Describe your changes
New sample that initializes a map with hybrid satellite view centered on the Eiffel Tower and listens for
mapTypeId_changedevents when the user toggles the built-in Map / Satellite control.Uses
@ts-ignoreformapTypeId,MapTypeId, andgetMapTypeIduntil@types/woosmap.mapis updated for Map JS API v1.33.Will be embedded in the developers.woosmap.com Map Types concept page (PR #1246).
How to test
PR preview will be available at
https://demo.woosmap.com/misc/js-samples-pr-deploy/pr-{N}/samples/map-type-hybrid/app/dist/once CI deploys to S3.Locally:
npm startthen openhttp://localhost:8080/samples/map-type-hybrid/app/dist/Checklist: