MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / _styleToPathOptions

Method _styleToPathOptions

src/map-area.js:166–188  ·  view source on GitHub ↗
(style)

Source from the content-addressed store, hash-verified

164 return latLngArray;
165 }
166 _styleToPathOptions(style) {
167 var options = {};
168 if (style.stroke !== 'none') {
169 options.stroke = true;
170 options.color = style.stroke;
171 options.opacity = style.strokeOpacity;
172 options.weight = parseInt(style.strokeWidth);
173 options.dashArray = style.strokeDasharray;
174 options.lineCap = style.strokeLinecap;
175 options.lineJoin = style.strokeLinejoin;
176 } else {
177 options.stroke = false;
178 }
179 if (style.fill !== 'none') {
180 options.fill = true;
181 options.fillColor = style.fill;
182 options.fillOpacity = style.fillOpacity;
183 options.fillRule = style.fillRule;
184 } else {
185 options.fill = false;
186 }
187 return options;
188 }
189}

Callers 1

_attachedToMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected