Skip to content

Commit e835061

Browse files
authored
Merge pull request #54 from mblomdahl/release/1.6.0
Release/1.6.0
2 parents 22256f3 + 82eca3f commit e835061

5 files changed

Lines changed: 172 additions & 46 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ Returns **[MapboxCircle](#mapboxcircle)**
123123
**Parameters**
124124

125125
- `map` **mapboxgl.Map** Target map for adding and initializing circle Mapbox GL layers/data/listeners.
126+
- `before` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)?** Layer ID to insert the circle layers before; explicitly pass `null` to
127+
get the circle assets appended at the end of map-layers array (optional, default `'waterway-label'`)
126128

127129
Returns **[MapboxCircle](#mapboxcircle)**
128130

@@ -184,6 +186,12 @@ Returns **{sw: {lat: [number](https://developer.mozilla.org/en-US/docs/Web/JavaS
184186

185187
## Changelog
186188

189+
### v. 1.6.0
190+
191+
- Add optional `before` argument to _MapboxCircle.addTo_
192+
([#50](https://github.com/mblomdahl/mapbox-gl-circle/issues/50))
193+
- Updated center/radius handle interactions to make performance issues more subtle
194+
187195
### v. 1.5.2
188196

189197
- Fix bug where the circle would always show a horizontal resize cursor on radius handles,

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
style: 'mapbox://styles/mapbox/streets-v9',
104104
center: [18.059678, 59.322465],
105105
zoom: 12.305430
106-
});
106+
}).addControl(new mapboxgl.ScaleControl({maxWidth: 300}), 'top-right');
107107

108108
var layerList = document.getElementById('menu');
109109
var inputs = layerList.getElementsByTagName('input');

0 commit comments

Comments
 (0)