HTML/CSS Markers using Google Maps Javascript API v3

前端 未结 2 1169
有刺的猬
有刺的猬 2021-01-05 12:22

Our company just moved from Leaflet.js to the Google Maps API; I\'ve search high and low trying to find a simple way of integrating HTML/CSS Markers/Boxes a

2条回答
  •  长发绾君心
    2021-01-05 12:45

    You might want to check google.maps.InfoWindow (https://developers.google.com/maps/documentation/javascript/overlays#InfoWindows) and the google.maps.Marker (https://developers.google.com/maps/documentation/javascript/reference#Marker) of google maps. Any CSS you apply on the page will be applied to the InfoWindow as well.

提交回复
热议问题