π‘ Home π Chapter π Prev π Next
β‘Β GMapsBook.com is crafted by Jozef Sorocin (π’Β Book a consulting hour) and powered by:
<aside> π The materials presented in this chapter deal with low-level APIs. If youβre using a framework like React or Angular, make sure to check out the chapter on Working with Frameworks.
</aside>
Out of the box, Google Maps lets you add alphanumeric marker labels via the label
property.
These labels were originally designed for rather simple use cases like navigation β think routing from A
to B
via C
.
As the web evolved, people started replacing default markers with increasingly complex shapes β think real estate listing pins, marker clusters, brand logos and such.
To address this, Google gave developers a helping hand by releasing libraries like the v3-utility-library
and esp. markerwithlabel
.
These libraries abstracted away some complexity but most people still resorted to either:
To this day, custom marker labels pose a challenge to Google Maps newbies and practitioners alike. In this chapter, weβll reduce the complexities of marker labels to the minimum and learn how to bend them to our will.
Iβm developing a Google map for the βCareersβ page of a restaurant chain. I want:
The desired result