用css 做一个地图定位点的图标

请问各路大虾, 我想简单用css写一个 地图上面的定位点(map-marker) 的图标,
就像是这个 , 我想用css 写一个简单的类, 然后在div的class 使用即可 。

请问网上有没有什么可以借鉴的代码, 我很少做前端css代码。谢谢。
补充:div的 width 为12px; height也是12px ;

img


<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .circle{
    width: 12px;
    height: 12px;
    background: red;
    border-radius: 0px 18px 20px 18px;
    transform: rotate(-135deg);
}

    </style>
  </head>
  <body>
    <div class="circle"></div>
    <script>
 
    </script>
  </body>
</html>

效果截图

img

代码

<html>
<body>
<style type="text/css"> 
 
 span{height:40px; width:40px; display:block; position:relative;} 
 
 .demoSpan1{width:22px;}
 
.demoSpan1:before{content:''; height:12px; width:12px; border:5px solid red; display:block; position:absolute; top:2px; 
left:0px; z-index:1; background:#fff; line-height:26px; 
border-radius:40px;-webkit-border-radius:40px;-moz-border-radius:40px; color:#fff; text-align:center;}
 
.demoSpan1:after{content:''; height:0px; width:0px; display:block; position:absolute; bottom:2px; left:1px; border:10px 
transparent solid; border-top-color:red; border-width:20px 10px 0px 10px; }
 
</style>
<span class="demoSpan1">
</span>
</body>
</html>

img