Marker Playground
This application allows you to explore the examples and the API
provided by the @googlemaps/adv-markers-utils
without
having to set up your own website and API key for that. The editor
provides full TypeScript code assistance for the Google Maps API as
well as the @googlemaps/adv-markers-utils
module.
Writing and contributing examples
Each example is a single typescript file with a function as it's
default export. When the example is run, that function will be
called with the google.maps.Map
instance as
argument. If any permanent changes are done to the environment
(browser event handlers or timers for example), the function has
to return a cleanup-function that reverts the changes made to
the environment.
Examples should generally focus on demonstrating a single
feature of the
@googlemaps/adv-markers-utils
package or a unique
way to use the features to solve a real-world problem in a
simplified way. If you notice features not covered by examples
or if you have a good idea for an example, feel free to
create a feature-request
or send us a pull-request for a new file in the
examples directory.