()
| 4174 | |
| 4175 | var iconOptions = Object.assign({}, options.iconOptions, item.iconOptions); |
| 4176 | var drawPoint = function drawPoint() { |
| 4177 | context.beginPath(); |
| 4178 | context.arc(x, y, options.size || 5, 0, Math.PI * 2); |
| 4179 | context.fillStyle = options.fillStyle || 'red'; |
| 4180 | context.fill(); |
| 4181 | }; |
| 4182 | if (!iconOptions.url) { |
| 4183 | drawPoint(); |
| 4184 | return; |