Commit Graph

3859 Commits

Author SHA1 Message Date
Poisbeau Mathieu
bde6b34502 Update Marker.js
According to the Leaflet documentation, setOpacity must return "this".
2013-07-10 19:00:11 +02:00
Vladimir Agafonkin
8ca360df51 Merge branch 'master' into stable
* master:
  fix marker shadow not zoom animating after setIcon, close #1768
2013-07-10 19:35:37 +03:00
Vladimir Agafonkin
001f975b22 fix marker shadow not zoom animating after setIcon, close #1768 2013-07-10 19:34:51 +03:00
Vladimir Agafonkin
2fddd6e2bb Merge branch 'master' into stable
* master:
  fix geojson not accepting geometry arrays, close #1840
2013-07-10 19:21:57 +03:00
Vladimir Agafonkin
1781cda04a fix geojson not accepting geometry arrays, close #1840 2013-07-10 19:21:39 +03:00
Vladimir Agafonkin
64a4df207e bump version 2013-07-10 17:24:27 +03:00
Vladimir Agafonkin
e04fd2bd52 merge master (removing built files) 2013-07-10 17:24:06 +03:00
Vladimir Agafonkin
1f6b981aab don't install travis-artifacts for minor branches and PRs 2013-07-10 17:21:33 +03:00
Vladimir Agafonkin
d140dca57c remove build JS in dist, update readme, close #1354 2013-07-10 17:18:59 +03:00
Vladimir Agafonkin
2e9cb136b2 update download links according to #1354 2013-07-10 17:13:39 +03:00
Vladimir Agafonkin
16c0d4a391 update links to latest stable in quick start 2013-07-10 16:58:53 +03:00
Vladimir Agafonkin
18b3f3a47d Merge branch 'master' into stable
* master:
  add leaflet prefix to travis build archives, fix .DS_Store inclusion
2013-07-10 16:53:22 +03:00
Vladimir Agafonkin
4759fdbf36 add leaflet prefix to travis build archives, fix .DS_Store inclusion 2013-07-10 16:53:02 +03:00
Vladimir Agafonkin
2553fe6d5d Merge branch 'master' into stable
* master:
  archive dist in travis without root dir
  fix path in travis artifacts build
  add build uploading to s3 to travis
2013-07-10 16:38:51 +03:00
Vladimir Agafonkin
53d9375284 archive dist in travis without root dir 2013-07-10 16:24:06 +03:00
Vladimir Agafonkin
d888a2e49e fix path in travis artifacts build 2013-07-10 16:08:19 +03:00
Vladimir Agafonkin
823cd0990e add build uploading to s3 to travis 2013-07-10 16:03:35 +03:00
Vladimir Agafonkin
8ec663c676 Merge branch 'master' into stable
* master:
  fix typo in changelog
  update changelog
2013-07-10 13:19:59 +03:00
Vladimir Agafonkin
cf206fb252 fix typo in changelog 2013-07-10 13:19:25 +03:00
Vladimir Agafonkin
382104586f update changelog 2013-07-10 13:18:26 +03:00
Vladimir Agafonkin
067b673ea4 merge master without the scaled tiles commit into stable 2013-07-10 13:02:31 +03:00
Vladimir Agafonkin
66e50bb089 Merge branch 'stable' of https://github.com/Leaflet/Leaflet into stable
* 'stable' of https://github.com/Leaflet/Leaflet:
  add package.json for publishing on npm
  bump version to 0.5.1 and update build
  backport the geojson featurecollection arrays fix
  Make setRadius and updateStyle({radius: 123 }) work.
  add generated coverage to gitignore in stable
2013-07-10 13:01:09 +03:00
Vladimir Agafonkin
81c5b8d52e Revert "Merge pull request #1802 from Leaflet/scaledtiles"
This reverts commit 8f2dc24c88, reversing
changes made to 71e851fa40.
2013-07-10 12:58:41 +03:00
Vladimir Agafonkin
604dac50e6 update changelog 2013-07-10 12:50:18 +03:00
Vladimir Agafonkin
69c74a5057 Merge pull request #1817 from tofferrosen/patch-1
Issue where the tile layer is not reset and updated when redraw is calle...
2013-07-10 02:27:41 -07:00
Vladimir Agafonkin
94819b3186 update changelog 2013-07-09 16:17:18 +03:00
Vladimir Agafonkin
20099d4d2e update build 2013-07-09 16:10:03 +03:00
Vladimir Agafonkin
bb29331ca8 Merge pull request #1846 from Leaflet/layerremove
Fire layerremove after removing the layer
2013-07-08 22:53:22 -07:00
John Firebaugh
4839c44509 Fire layerremove after removing the layer
This is consistent with 0.5.x and seems more useful. Updating
the state of a layer switcher using map.hasLayer in response
to layeradd and layerremove events is my use case.
2013-07-08 16:53:04 -07:00
John Firebaugh
a1d7c1268d Mirror D3 strategy for drag event suppression
-webkit-user-drag is not inherited, so it's ineffective
at preventing drags of image overlays (#1821). Instead,
always preventDefault on dragstart.

While here, preventDefault on selectstart as well (a
"belt-and-suspenders" approach).

Together, these changes bring Leaflet's strategy in line
with D3's:

https://github.com/mbostock/d3/blob/master/src/event/drag.js
2013-07-08 10:26:02 -07:00
Vladimir Agafonkin
8a0b9ecb64 Merge pull request #1826 from scooterw/fix_mouse_position_relative
attempt to address regressions from #1684, #1745
2013-07-06 07:45:03 -07:00
Scooter Wadsworth
4e2a7f2030 Merge pull request #1 from jec006/fix_mouse_position_relative
Fix issue with mouse position when page is scrolled
2013-07-05 09:48:26 -07:00
Josh Caldwell
0c381325bb Fix issue with mouse position when page is scrolled 2013-07-05 11:50:36 -04:00
Vladimir Agafonkin
401ceff0f6 fix links to leaflet website in tutorials 2013-07-05 15:56:35 +03:00
Vladimir Agafonkin
f688f3d810 fix FF error on API reference page 2013-07-05 13:46:57 +03:00
Vladimir Agafonkin
e787027110 Merge pull request #1833 from danzel/master
Fix worldCopyJump if you start zoomed all the way out. Fixes #1831
2013-07-05 03:39:24 -07:00
David Beitey
ae7dd990a7 Document changes to setMaxBounds method as per #1834 2013-07-05 14:13:49 +10:00
David Beitey
c663392697 Allow options to be passed to Map.setMaxBounds such that they can be used when setting the view. 2013-07-05 14:12:09 +10:00
danzel
fef108cc8e Fix worldCopyJump if you start zoomed all the way out. Fixes #1831 2013-07-05 14:35:48 +12:00
Vladimir Agafonkin
3a8137cb93 Merge pull request #1832 from turban/gh-pages
Changed name for graticule plugin
2013-07-04 15:52:51 -07:00
Bjørn Sandvik
71e6b9500a Changed name for graticule plugin 2013-07-05 00:45:25 +02:00
Vladimir Agafonkin
2d4d8cf359 Merge pull request #1830 from turban/gh-pages
Added Graticule plugin
2013-07-04 13:57:39 -07:00
Bjørn Sandvik
84a31e6bb2 Added graticule plugin 2013-07-04 22:22:57 +02:00
Scooter Wadsworth
914807c621 attempt to address regressions from #1684, #1745 2013-07-03 22:42:10 -06:00
Aaron Rutkovsky
f01e010f9a Stop transition if element is outside fo the DOM 2013-07-03 18:06:45 -05:00
Hans Kristian Flaatten
8e98e52b88 Renames L.LatLng property .altitude to .alt 2013-07-03 15:44:57 +02:00
Hans Kristian Flaatten
46885de00d Adds support for altitude and 3D GeoJSON
This commit adds a third parameter to the L.LatLon class for specifying
altitude. This is in turn stored in the `.latitude` property for the LatLng
instance. Latitude property will only be set if the latitude parameter is not
undefined, this is done in order to ensure backwards compability.

```javascript
var latlng = new L.LatLng(10, 20, 30);
console.log(latlng.altitude); // prints '30' to the console
```

Similar functionality has been added to L.GeoJSON coordsToLatLng() and
latLngToCoords() methods in order to handle import and export of 3D GeoJSON.

```javascript
var geoJSON = {
  type: 'Feature'
  ,properties: {}
  ,geometry: {
    type: 'Point'
    ,coordinates: [20, 10, 30]
  }
}
var layer = new L.GeoJSON();
layer.addData(geoJSON);
console.log(layer.getLayers()[0].getLatLng().altitude);
```

`NB` It is important to notice that no logic has been added in order to prevent
latitude and longitude to change without appropirate change in altitude – this
must be handled by the application.
2013-07-03 10:13:00 +02:00
Vladimir Agafonkin
642fc815e1 fix typo and reorder items in the changelog a bit 2013-07-02 12:55:16 +03:00
Vladimir Agafonkin
e6ddac4557 update changelog, close #1819 2013-07-02 12:43:12 +03:00
Vladimir Agafonkin
8f2dc24c88 Merge pull request #1802 from Leaflet/scaledtiles
TileLayer maxNativeZoom option for scaling tiles on unsupported zoom levels
2013-07-02 02:32:08 -07:00