forked from makinacorpus/django-leaflet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGES
343 lines (219 loc) · 8.21 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
=========
CHANGELOG
=========
0.16.1 (unreleased)
-------------------
**New features**
* Pass relative URLs for static files through django.contrib.staticfiles (thanks @dyve, fixes #111)
* Allow to override settings at the template tag level (thanks @PetrDiouhy, fixes #59)
* Update Leaflet to 0.7.5 (@dyve)
- Nothing changed yet.
0.16.0 (2015-04-17)
-------------------
**New features**
* Add setting ``FORCE_IMAGE_PATH`` to bypass Leaflet guess on image paths
(*useful when using django-compressor*) (thanks @nimasmi)
* Add Hebrew translations (thanks @nonZero)
* Map attribution can be translated using ugettext_lazy
**Bug fixes**
* Fix widgets hanging forever with points (thanks @Azimkhan, fixes #90)
* Remove setTimeout when calling setView() (thanks @manelclos, fixes #89)
* Fix minZoom/maxZoom when undefined in settings (thanks Manel Clos)
0.15.2 (2014-12-22)
-------------------
* Allow to set any leaflet tileLayer option in ``TILES`` and ``OVERLAYS`` settings (fixes #70).
0.15.1 (2014-12-04)
-------------------
* Remove special characters in README (fixes #82)
* Fix translation in French (fixes #86)
* Fix es localization
0.15.0 (2014-10-24)
-------------------
* Add ability to add overlay tile layers via new setting ``OVERLAYS``.
0.14.2 (2014-10-24)
-------------------
* Fix Django 1.7 support in tests (thanks Marco Badan)
* Add spanish translations (thanks David Martinez)
0.14.1 (2014-07-30)
-------------------
* Fix draw events being received for each draw control on the map.
(**Caution**: ``map.drawControl`` attribute is not set anymore)
0.14.0 (2014-07-29)
-------------------
* Fix GeoJSON serialization when creating new MultiPoint records
* Make the only layer match the map max/min_zoom (fixes #67) (thanks Manel Clos)
* Added widget attribute to edit several fields on the same map
0.13.7 (2014-06-26)
-------------------
* Fix typo in default proj4js path (ref #71)
0.13.6 (2014-06-26)
-------------------
* Setup Projection machinery in Leaflet forms if necessary
* Django Leaflet forms fiels without libgeos installed (thanks Florent Lebreton)
0.13.5 (2014-06-18)
-------------------
* Prevent SRID download when default is used
0.13.4 (2014-06-13)
-------------------
* Fix SRID projection file not being loaded
0.13.3 (2014-06-10)
-------------------
* Upgrade to Leaflet 0.7.3
0.13.2 (2014-04-15)
-------------------
* Fix regression where maps have null as max zoom
0.13.1 (2014-04-10)
-------------------
* Fix GEOS dependency, back as optional for geometry edition only (fixes #65)
* Add minZoom and maxZoom to map initialization
* Add support of advanced static files locations, like S3 (thanks @jnm)
0.13.0 (2014-03-26)
-------------------
* Add support of Leaflet form fields on Django >= 1.4.2 (thanks Gaël Utard)
0.12 (2014-03-22)
-----------------
* Add support of GeoJSON fields
0.11.1 (2014-02-12)
-------------------
* Do not complain about tile extent if SRID is 3857
0.11.0 (2014-02-07)
-------------------
* Add control of `metric` and `imperial` in `SCALE` option (thanks @smcoll)
* Upgrade to Leaflet.draw 0.2.3
0.10.1 (2014-02-03)
-------------------
* Upgrade to Leaflet 0.7.2
0.10.0 (2014-01-22)
-------------------
* Python 3 support (thanks @itbabu)
* Added JavaScript test using Mocha
0.9.0 (2013-12-11)
------------------
* Upgrade to Leaflet 0.7.1
* Fix unsaved warning being always triggered on Internet Explorer.
* Added DE locale (thanks @rosscdh)
* Fix installation with python 2.6 (thanks @ollb)
0.8.5 (2013-11-05)
------------------
* Fix name collision.
0.8.4 (2013-11-05)
------------------
* Fix regression in Django leaflet options serialization.
0.8.3 (2013-11-05)
------------------
* Switch to lazy gettext in leaflet module init.
0.8.2 (2013-10-31)
------------------
* Fix drawing of multi-polygon (fixes #37)
* Fix attached data for events with jQuery fallback (fixes #38)
* Fix Javascript syntax errors when using form prefixes (fixes #40)
0.8.1 (2013-09-30)
------------------
* Fix Leaflet library inclusion with "plugins=ALL" outside Admin.
* Do not include translations in every widgets outside Admin.
* Fix syntax error if form widget translations contains quotes.
* Fix dependency error if Leaflet is loaded after the form widget in the DOM.
* Respect plugins declaration order using OrderedDicts
* Prepend forms assets (instead of extend) if PLUGINS['forms'] already exists.
0.8.0 (2013-09-18)
------------------
* Renamed Leaflet map fragment template
* Leaflet map geometry widgets for adminsite and forms (requires Django 1.6)
* Fix geometry type restriction in form fields (fixes #32)
* Use jQuery for triggering events, only if CustomEvent constructor is not available (fixes #27, fixes #34)
0.7.4 (2013-08-28)
------------------
* Fix projection download error if not available
* Compute resolutions the same way TileCache does it, and provide
example of TileCache configuration.
* Raise ImproperlyConfigured if TILES_EXTENT is not portrait (since not supported)
0.7.3 (2013-08-23)
------------------
* Do not use console() to warn about deprecated stuff if not available (<IE9)
* Fix apparence of Reset view control for Leaflet 0.6
* Add French and Italian locales
0.7.2 (2013-08-23)
------------------
* Fix JS error when no callback value is provided.
0.7.1 (2013-08-21)
------------------
* Fix map initialization with default tiles setting
* Fix map ``fitBounds()`` to ``SPATIAL_EXTENT`` in settings
0.7.0 (2013-08-21)
------------------
**Breaking changes**
* The ``leaflet_map`` template tag no longer registers initialization
functions in global scope, and no longer adds map objects into ``window.maps``
array by default. Use ``LEAFLET_CONFIG['NO_GLOBALS'] = False`` to
restore these features.
* Initialization callback function no longer receives the map ``bounds`` in second
argument, but the map options object.
**Deprecated**
* JS default callback function ( *<name>Init()* ) for map initialization is **deprecated**.
Use explicit ``callback`` parameter in template tag, or listen to window event ``map:init`` instead.
(See *Use Leaflet API* section in README.)
* ``TILES_URL`` entry in ``LEAFLET_CONFIG`` is **deprecated**.
Use ``TILES`` instead.
* Settings lookup is restricted to ``LEAFLET_CONFIG`` dict. Most notably,
``SRID``, ``MAP_SRID`` and ``SPATIAL_EXTENT`` at global Django settings level
are discouraged.
**New features**
* Add ability to associate layers attributions from settings
* Add ``auto-include`` key for entries in ``PLUGINS`` setting, in order
to implicity load plugins with ``leaflet_css`` and ``leaflet_js`` tags.
* Rewrote map initialization, into less flexible and obstruvise way.
* Use plugin system for Leaflet.MiniMap.
* Add ``loadevent`` parameter to ``leaflet_map`` tag.
* Map initialization is now idempotent, does nothing if map is already initialized.
* Add ``ATTRIBUTION_PREFIX`` setting to control prefix globally.
0.6.0 (2013-08-08)
------------------
* Upgrade to Leaflet 0.6.4
0.6.0a (2013-07-05)
-------------------
* Upgrade to Leaflet 0.6.2
* Upgrade Leaflet.Minimap (rev 3cd58f7)
* Upgrade Proj4Leaflet (rev f4f5b6d)
0.5.1 (2013-04-08)
------------------
* Add minimap support
* Drop Leaflet version switching
* Update Leaflet to 0.5.1
* Update Leaflet.Minimap
* Fix apparence of Reset view button
0.4.1 (2012-11-05)
------------------
* Fix div creation test in template.
0.4.0 (2012-11-05)
------------------
* Remove imperial scale.
* Add ``create_div`` parameter
0.3.0 (2012-10-26)
------------------
* Remove max resolution setting since it can be computed
* Allow scale control even if view is not set
* Upgrade Leaflet to 0.4.5
0.2.0 (2012-09-22)
------------------
* Fix packaging of templates
* Use template for <head> fragment
* Do not rely on spatialreference.org by default
* Default settings for SRID
* Default settings for map extent
* Default map height
* Default tiles base layer
* map variable is not global anymore
0.1.0 (2012-08-13)
------------------
* Initial support for map projection
* Show zoom scale by default
* Spatial extent configuration
* Initialization callback instead of global JS variable
* Leaflet version switching
* Global layers configuration
0.0.2 (2012-03-22)
------------------
* Add IE conditional CSS
0.0.1 (2012-03-16)
------------------
* Initial working version