type Object ( geomap style )
  borderRadius: "8px",
  color: "#7f0000",
  fill: undefined,
  fillOpacity: .2,
  height: "8px",
  opacity: 1,
  stroke: undefined,
  strokeOpacity: 1,
  strokeWidth: "2px",
  visibility: "visible",
  width: "8px"
$( map selector ).geomap( { drawStyle: { color: "green" } } );
var drawStyle = $( map selector ).geomap( "option", "drawStyle" );
$( map selector ).geomap( "option", "drawStyle", { strokeWidth: "4px" } );

The drawStyle option retrieves or updates the style of incomplete lines and polygons as they are being drawn. This differs from the shapeStyle option which updates the base style of shapes that you append to the map.

Two extra color properties, stroke and fill, are not defined by default and use the value of the color property until they are defined individually.

This option affects both the draw modes (drawPoint, drawLineString, and drawPolygon) and the measure modes (measureLength, and measureArea).

This option changes specific properties of the internal style object. If you init or set an incomplete style object, only the style properties you reference are updated.

  1. the base shapeStyle starts with its initial style having a red color (applied to both stroke and fill) and a strokeWidth of 2px
    var map = $( '#map' ).geomap( );
    map.geomap( 'option', 'shapeStyle' );
      // {
      //   color: "#7f0000"
      //   ...
      //   strokeWidth: "2px"
      // }
  2. you can change the base drawStyle's stroke color to blue
    $( '#map' ).geomap( 'option', 'drawStyle', { stroke: '#00f' } );
  3. the next time a user draws a shape or measures, the stroke and fill of the draw shape following the pointer will be blue.

Please see the style section at the bottom of the geomap widget page for more information about the style object.