Commit Graph

812 Commits

Author SHA1 Message Date
Vladimir Agafonkin
2464d13414 fix FeatureGroup e.layer empty in old IE, close #1938 2013-11-06 23:35:42 +02:00
Vladimir Agafonkin
b1c5aa2e29 fix problems with #1822 merge 2013-11-06 23:34:23 +02:00
Vladimir Agafonkin
5d6641360b merge GeoJSON altitude pull with some tweaks #1822 2013-11-06 23:17:14 +02:00
perliedman
63e84693ae Fixed smart tabs 2013-11-06 21:55:33 +01:00
perliedman
8ae0e2700c Generalized 2013-11-06 21:46:17 +01:00
perliedman
2a407b19ac Merge branch 'master' of https://github.com/Leaflet/Leaflet into tilelayer-crs-controlled-wrap 2013-11-06 21:23:39 +01:00
Vladimir Agafonkin
ddbb01c3da add distance to dragend event data, close #2158, ref #872 2013-11-06 21:17:35 +02:00
Vladimir Agafonkin
6c85f43fb2 fix CircleMarker getRadius, close #2016, close #2017 2013-11-04 18:56:49 +02:00
Vladimir Agafonkin
bd3409f2f8 reverse axis order for wms 1.3 & EPSG4326, close #1897 2013-11-04 18:24:33 +02:00
Vladimir Agafonkin
5b40fade90 remove excessive updateContent on Popup add, close #2137 2013-11-04 13:27:48 +02:00
Tom MacWright
427c9f1ed4 Fix build error, reference layer correctly. 2013-10-31 19:10:30 -04:00
Tom MacWright
ef44fbe17a Add tileloadstart event with tile data 2013-10-31 18:53:24 -04:00
Vladimir Agafonkin
929ea1fe71 Merge pull request #2112 from jimmytidey/master
adding alt tag to marker icons
2013-10-21 10:23:08 -07:00
Vladimir Agafonkin
83fb3cc9dd add Popup getContent, close #2100 2013-10-18 14:02:42 +03:00
Vladimir Agafonkin
c9d0abb02b cleanup whitespace in #1197, remove unnecessary if 2013-10-18 14:01:43 +03:00
Vladimir Agafonkin
676a76d4d5 Merge pull request #1197 from scottharvey/master
Adds the ability to get a popup once it's bound to a marker, this commit fixes issue #618
2013-10-18 04:00:38 -07:00
Jimmy Tidey
5af47dddc2 adding alt tag to marker icons 2013-10-16 14:52:05 +01:00
AndreyGeonya
31114669be popup getLatLng method added 2013-10-14 17:09:04 +03:00
Vladimir Agafonkin
1a3b150a2d fix layers control not scrolling in FF, close #2029
and also add DomEvent disableScrollPropagation method
2013-10-14 13:29:23 +03:00
Alexander Parshin
f5de36e229 Add holes support to L.Polygon.setLatLngs(). Fixes #1518 2013-10-13 20:17:12 +04:00
Vladimir Agafonkin
2629c181d0 fix firefox console warnings when animating markers, close #2090 2013-10-11 18:44:18 +03:00
Vladimir Agafonkin
64b0e340c0 only animate tile layer if at least one tile loaded, fix #2071 2013-10-10 18:44:08 +03:00
Jérémy Lal
0fdb00be9e GeoJSON: pass options to geometryToLayer
smoothFactor, noClip options cannot be changed otherwise.
In particular, smoothFactor: 0 is needed when one need to
render tiled polygons (or else small cuts appears).
2013-10-07 10:16:31 +02:00
perliedman
3bcc1c9a3a Use CRS's bounds to calculate wrap 2013-09-23 09:59:10 +02:00
Tom MacWright
befc5eb992 Add support for layers lacking Events mixin. Fixes #1962 2013-09-17 17:36:05 -04:00
Vladimir Agafonkin
4b34362405 add public Popup update method, close #1959 2013-09-13 18:00:54 +03:00
Vladimir Agafonkin
5e30c51f85 add GeoJSON rountripping of GeometryCollection and MultiPoint, close #1956 2013-08-28 12:43:04 +03:00
Vladimir Agafonkin
40ef71dc4c minor cleanup 2013-08-27 22:06:13 +03:00
Vladimir Agafonkin
b0699b1fe3 Merge pull request #1972 from albburtsev/issue-1588
Adds Popup autoPanPadding(TopLeft & BottomRight) options. Fixes #1588
2013-08-27 06:14:31 -07:00
Yohan Boniface
c7eac791b2 Use this._popupHandlersAdded to manage Marker popup event
Just like it's done in Path. This allows to cut event management on bindPopup
2013-08-15 00:16:58 +02:00
Alexander Burtsev
157500818e Adds Popup autoPanPadding(TopLeft & BottomRight) options. Fixes #1588 2013-08-14 17:57:48 +04:00
Stefan Sydow
1b584afc49 remove tailing spaces for jake build 2013-08-09 09:28:08 +02:00
Stefan Sydow
10c1af4f41 more consistent method name for ImageOverlay update 2013-08-09 09:25:04 +02:00
Stefan Sydow
e5a129a59f add attribution and update function 2013-08-09 09:24:52 +02:00
Anton Borodatov
b66dd9dfc3 Marker should fire 'add' event like geometry Path and any object utilizing Ilayer 2013-08-06 22:23:32 +03:00
Steve Kashishian
e5bf57c4f7 move a circlemarker's popup with each new position. 2013-07-31 14:40:13 -04:00
Vladimir Agafonkin
b313165cca Merge pull request #1918 from snkashis/empty_interior_ring
Throw invalid GeoJSON error on Polygon with an empty interior
2013-07-29 12:17:16 -07:00
Steve Kashishian
b36a79d386 Throw invalid GeoJSON error on Polygon with an empty interior 2013-07-29 14:56:29 -04:00
Steve Kashishian
1d3980b563 Provide css classes for draggable markers, and in-progress drags. 2013-07-29 11:39:54 -04:00
Steve Kashishian
e4c801a514 rebind popup when using setIcon to ensure proper popup anchor placement 2013-07-19 20:30:05 -05:00
palewire
ede3aebf6a Corrected camelcasing of lineCap and lineJoin. 2013-07-18 06:56:42 -07:00
Vladimir Agafonkin
e7ebb60133 rename to lineCap and lineJoin, #1863, close #1843 2013-07-18 14:54:43 +03:00
Vladimir Agafonkin
101d0df5f7 Merge pull request #1863 from datadesk/linecap
New stroke-linecap and stroke-linejoin style options with VML alternatives. For #1843.
2013-07-18 04:51:18 -07:00
Vladimir Agafonkin
756e9b854c avoid vector flickering on Mac Safari more often, #902 2013-07-17 19:28:24 +03:00
John Firebaugh
7623e0a593 Fix scrolling popup content on Firefox 2013-07-15 11:32:40 -07:00
palewire
a2c987febc New stroke-linejoin style option with a VML alternative. For #1843. 2013-07-12 22:52:32 -07:00
palewire
665a956bc2 New stroke-linecap style option with a VML alternative. For #1643. 2013-07-12 22:37:30 -07:00
danzel
ec3b9e0ff2 Add a few more featuregroup tests and fix regression of removeLayer. 2013-07-12 10:13:25 +12:00
Vladimir Agafonkin
a24a772694 add multipoly getLatLngs, close #1839, update changelog 2013-07-11 15:11:28 +03:00
Vladimir Agafonkin
889136fe84 fixed false FeatureGroup layerremove, close #1847 2013-07-11 12:57:05 +03:00
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
001f975b22 fix marker shadow not zoom animating after setIcon, close #1768 2013-07-10 19:34:51 +03:00
Vladimir Agafonkin
1781cda04a fix geojson not accepting geometry arrays, close #1840 2013-07-10 19:21:39 +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
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
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
Christoffer Rosen
724f9aa3d8 Issue where the tile layer is not reset and updated when redraw is called.
I was able to replicate this issue: https://github.com/Leaflet/Leaflet/issues/1797. The problem is that redraw does not call update and reset on the TileLayer, therefore causing the above issue. I am proposing simply doing it before calling drawTile. I built and tested it, and it does fix the issue.
2013-07-01 23:53:13 -05:00
John Firebaugh
475e736346 Revert "Consistent mouse event propagation in Marker and Path"
This reverts commit 4015f49615.
2013-06-28 16:22:20 -04:00
John Firebaugh
4015f49615 Consistent mouse event propagation in Marker and Path
Marker was missing mouseup and mousemove.
Path was missing mouseup.
2013-06-28 14:44:10 -04:00
John Firebaugh
1954d3d64e Replace explicit z-index with DOM reordering
Setting an explicit z-index interacts badly with tile
layers which have an opacity less than 1, and therefore
create a stacking context.

Fixes #1790.
2013-06-28 09:55:17 -04:00
Vladimir Agafonkin
9559f40829 minor cleanup 2013-06-27 19:47:34 -04:00
Vladimir Agafonkin
2521e121db fix global map leak 2013-06-27 19:45:00 -04:00
Vladimir Agafonkin
b03f322193 add TileLayer maxNativeZoom option for scaling tiles on unsupported zooms, close #1798 2013-06-27 19:40:27 -04:00
Vladimir Agafonkin
859c62f0e7 fix chrome zoom anim flickering near map borders 2013-06-27 19:36:20 -04:00
John Firebaugh
bc40266bc9 Revert "Use "wheel" event where supported (#1788)"
This reverts commit a784c560e5.
2013-06-27 10:27:42 -04:00
John Firebaugh
7355070958 Merge pull request #1789 from Leaflet/wheel
Use "wheel" event where supported (#1788)
2013-06-25 10:40:14 -07:00
John Firebaugh
a784c560e5 Use "wheel" event where supported (#1788) 2013-06-25 13:31:51 -04:00
Vladimir Agafonkin
cdc65c6c6b add Circle & CircleMarker toGeoJSON 2013-06-25 12:43:22 -04:00
Vladimir Agafonkin
7223a7e49b prevent default on marker mousedown so it doesn't get outline on click 2013-06-24 16:07:18 -04:00
John Firebaugh
e7d0fb1b37 Normalize all toGeoJSON output to Features 2013-06-24 14:30:24 -04:00
John Firebaugh
d57525ec52 Don't overwrite layer.feature.geometry 2013-06-24 14:14:36 -04:00
Vladimir Agafonkin
5841fd87a4 convert geojson-converted layers back to features 2013-06-24 14:14:35 -04:00
Vladimir Agafonkin
a03d62cfda add TileLayer.WMS crs option for reprojecting, close #945 2013-06-24 13:26:19 -04:00
Vladimir Agafonkin
40179ed11f add keyboard accessibility to markers, close #1355 2013-06-24 13:14:30 -04:00
Tom MacWright
9f50ab8dbb Propagate popupopen as well, refs #1681 2013-06-24 12:00:08 -04:00
Tom MacWright
ed4b626550 Propagate popupclose event. Fixes #1681 2013-06-24 11:49:10 -04:00
Vladimir Agafonkin
6c061b2995 fix zoom not working with L_DISABLE_3D regression, close #1756 2013-06-24 11:32:51 -04:00
John Firebaugh
33d3c015c3 Remove webkit workaround that is no longer necessary
This was causing a bug where multiple `translate(0,0)` were
appended to the style when the opacity was changed multiple
times.
2013-06-24 10:47:24 -04:00
Vladimir Agafonkin
9bd725d669 fix zoom anim regression with a hack for now, close #1705 2013-06-24 09:39:49 -04:00
Vladimir Agafonkin
43c2c6a4a0 fix regression in marker setIcon #1768 2013-06-23 19:44:05 -04:00
Vladimir Agafonkin
19637c08a6 fix icon reuse code to properly handle shadow, close #1768 2013-06-23 09:49:34 -04:00
Steve
0ec7e03521 Fix icon.js documentation
ShadowUrl was being referred to as a point.
2013-06-21 13:04:18 -03:00
Vladimir Agafonkin
287f08565b Merge pull request #1761 from popox/marker-togglePopup
Nice to have feature - Toggle the display of a marker's popup on click
2013-06-19 07:40:10 -07:00
S. Andrew Sheppard
bea3e4c13e pass through coordsToLatLng when processing GeometryCollection 2013-06-17 20:31:24 -05:00
Paul Bonaud
1af9769ed0 Toggle the display of a marker s popup on click 2013-06-16 22:13:31 +02:00
Yohan Boniface
fef0606372 removeEventListener with same context used for adding it 2013-06-14 23:21:33 +02:00
Vladimir Agafonkin
b32a91584b fix 1px popup anchor shift 2013-06-12 14:18:29 +03:00
danzel
e36181dd66 jshint fixes. 2013-06-12 16:21:28 +12:00
danzel
b5f3b2a44f Tidy up ugly icon-swap code. 2013-06-12 16:18:42 +12:00
danzel
11e227bf6f Don't say this so much, options is in local scope. 2013-06-12 16:06:27 +12:00
danzel
fa45913505 Make Icon/DivIcon reuse not try reuse the wrong dom element type. 2013-06-12 16:05:42 +12:00
danzel
7f2eff363b Add support to DivIcon for reusing a div. Fixes #1753. Still issues remain (Can't change a marker with a DivIcon to have an image Icon or vice versa) 2013-06-12 15:55:03 +12:00
Vladimir Agafonkin
e5965aaa22 make all WMS request keys uppercase, close #1751 2013-06-11 16:42:35 +03:00
Vladimir Agafonkin
c807d10a02 better regexp for image folder detection, close #1657 2013-06-11 16:05:33 +03:00
Steve Kashishian
62f708a4dc Prevent contextmenu events on popups from falling thru to map 2013-06-04 11:27:42 -04:00
Vladimir Agafonkin
c54b6c13b3 Merge pull request #1726 from Norkart/reuseIconDOM
Reuse icon DOM
2013-06-03 02:14:06 -07:00
Robert Nordan
e58e1ec4e7 Ensure styles are set even when reusing DOM.
This fixes the error found in review.
2013-06-03 07:23:13 +02:00
Robert Nordan
d737c2e94a Reuse DOM object in Marker.SetIcon, fixes #561
If there already exists a DOM object for this marker, reuse it by setting
a new src and style rather than creating a new one.
2013-05-31 12:53:02 +02:00
Steve Kashishian
4c5b700e60 Prevent memory leak in removal of canvas layers 2013-05-30 14:39:03 -04:00