change style of Draw and Modify Features openlayers

34 Views Asked by At

I was using Draw and Modify Features example of OpenLayers in the site https://openlayers.org/en/latest/examples/draw-and-modify-features.html I was wondering if I could draw features with different styles ? in other words I need to have two style for my points how can I achieve that ?

      <label for="type">Geometry type &nbsp;</label>
      <select id="type">
        <option value="Point1">Point1</option>
        <option value="Point2">Point2</option>
        <option value="LineString">LineString</option>
      </select>
0

There are 0 best solutions below