Commit Graph

677 Commits

Author SHA1 Message Date
mourner
d907c6df63 Fixed setStyle stroke/fill update bug, closed #441 2012-02-16 18:56:39 +02:00
mourner
c3b33d8ca3 Polyline editing fixes, better debug page 2012-02-16 18:11:17 +02:00
Vladimir Agafonkin
b76cba10e2 Merge pull request #501 from ErrorProne/master
Forgot to prevent the default action on Path-right click
2012-02-16 07:56:18 -08:00
mourner
9ae2926327 Add Polyline edit event 2012-02-16 17:46:24 +02:00
mourner
95602105c1 Merge remote-tracking branch 'origin/master' 2012-02-16 17:29:00 +02:00
mourner
ebbad27cbd More polyline/polygon editing (middle markers), #174 2012-02-16 17:28:42 +02:00
Finn Herpich
395eeca7f4 forget to prevent the default context menu action 2012-02-16 16:26:49 +01:00
Finn Herpich
b863b0baf0 Added contextmenu to Path.SVG Events 2012-02-16 15:19:29 +01:00
mourner
43305b9ffb Initial polyline/polygon editing implementation, #174 2012-02-16 14:15:47 +02:00
mourner
b90c2f551f Clean up LatLngBounds#pad, update changelog 2012-02-16 13:09:48 +02:00
mourner
f9b3e28833 Merge remote-tracking branch 'origin/master' 2012-02-16 13:01:32 +02:00
mourner
1a8a0ce632 Added DivIcon for lightweight div-based markers, and editable poly example 2012-02-16 13:00:45 +02:00
mourner
e42f140970 Refactored Icon to use options instead of properties 2012-02-16 13:00:09 +02:00
mourner
bf558551ed Fix flickering cursor on marker dragging 2012-02-16 12:58:56 +02:00
mourner
e5feddf8fc Made Path redraw method public and chainable 2012-02-16 11:40:50 +02:00
jacobtoye
b817093da8 Added method to pad a LatLngBounds by a %. 2012-02-16 10:37:45 +13:00
mourner
df0800e678 Fixed click event after disabled dragging bug, closed #434 2012-02-15 19:26:17 +02:00
mourner
6040d8bf77 Added Circle#getBounds, closed #440 2012-02-15 18:54:11 +02:00
mourner
ae99354857 interpolate URL values from options (instead of urlParams 3rd argument) 2012-02-15 18:23:34 +02:00
mourner
a2a666d9c3 update build 2012-02-15 17:50:59 +02:00
mourner
808d01207c another batch of cleanup and refactoring 2012-02-15 17:50:22 +02:00
mourner
8e131c5f32 more cleanup and refactoring 2012-02-15 17:05:55 +02:00
mourner
e3d0e24a0c cleaning up and formatting code 2012-02-15 13:17:25 +02:00
mourner
30f1c6af9e Merged #488 fix from stable, closed #488, allowed smart tabs 2012-02-15 11:03:39 +02:00
mourner
ba5b40cc19 Fixed non-removable attributions regression #488 2012-02-15 10:54:17 +02:00
mourner
81e6fe4b95 webkit memory issue hack for webkit 2012-02-15 10:49:42 +02:00
Jason Sanford
22e2fba84b Adding "equals" method to LatLngBounds using the preferred LatLng.equals method. Much cleaner. 2012-02-14 09:29:29 -07:00
mourner
bc39d7036b fix black tile flickering bug, update changelog, build 2012-02-14 17:25:47 +02:00
mourner
2828235ba3 fixed black tile flickering on iOS and query string bug 2012-02-14 17:20:57 +02:00
mourner
bf7fbdb795 Fixed Leaflet include query string bug 2012-02-14 12:41:46 +02:00
mourner
7435d2ac09 removed unneeded control constants 2012-02-14 11:42:01 +02:00
mourner
2d8029e436 Reworked controls to be more flexible (inspired by #480) 2012-02-14 11:40:47 +02:00
Kyle Johnson
4ca4622aae Added support to set the position of the zoom control 2012-02-13 23:25:35 -05:00
Bryan McBride
d5660ef6ca Support ability to add a tile layer below all others for TileLayer.WMS 2012-02-13 10:04:23 -05:00
mourner
fdde989f05 Fixed Android 3 stability issues 2012-02-13 16:01:00 +02:00
mourner
0756ef15c7 Fixed Android 2 stability issues, Closed #69 2012-02-13 14:32:58 +02:00
mourner
2ebbfdf40c Fixed attributions disappearing, closed #405 2012-02-13 13:12:36 +02:00
mourner
0ef3058512 Added setZIndexOffset to Marker, closed #449 2012-02-13 12:50:18 +02:00
Vladimir Agafonkin
cdf91c2572 Merge pull request #468 from appelflap/master
Make L.TileLayer._update obey min/max Zoom of layer
2012-02-12 23:41:41 -08:00
mourner
c4d6a4f3d7 Fixed Layer Switcher on Mobile, closed #203 2012-02-12 16:51:30 +02:00
mourner
24ff9ce5ec more stable zoom animation 2012-02-12 15:15:33 +02:00
appelflap
388b6aeadb Make _update obey min/max Zoom of layer 2012-02-03 23:38:50 +01:00
mourner
fd2426eabd minor TileLayer edits 2012-02-03 20:17:20 +02:00
mourner
f46c0263c3 Fixed touch-panning inside a popup, closed #452 2012-02-03 12:59:05 +02:00
mourner
de78de0fee Update build and changelog 2012-02-03 12:51:29 +02:00
mourner
8088be451e merge reverse zoom TileLayer option from Majiir 2012-02-03 12:41:18 +02:00
mourner
3c2df2ee61 Clean up harvesine formula, update changelog 2012-02-03 12:17:11 +02:00
mourner
aa111eb790 Merge remote-tracking branch 'origin/master' 2012-02-03 12:07:23 +02:00
mourner
1cc885056b Significantly improved line simplification performance 2012-02-03 12:07:06 +02:00
Vladimir Agafonkin
4c25fd8236 Merge pull request #462 from mortenbekditlevsen/lldist
Haversine distance formula for getting distance between two LatLngs
2012-02-03 01:55:29 -08:00
Vladimir Agafonkin
77a24f107a Merge pull request #461 from mortenbekditlevsen/boundsintersection
Bounds intersection
2012-02-03 01:55:22 -08:00
Vladimir Agafonkin
10aa67a438 Merge pull request #460 from mortenbekditlevsen/divicon
<div> Icon
2012-02-03 01:55:13 -08:00
Vladimir Agafonkin
769ecd9801 Merge pull request #459 from mortenbekditlevsen/redraw
'redraw' method for TileLayer.Canvas
2012-02-03 01:55:08 -08:00
Morten Ditlevsen
86badfcefa Haversine distance formula for getting distance (in meters) between two LatLngs 2012-02-03 08:43:59 +01:00
Morten Ditlevsen
f54450f893 Added 'intersection' method for Bounds - just like the current implementation for LatLngBounds 2012-02-02 15:30:36 +01:00
Morten Ditlevsen
b7a2eeacd8 If image source for an icon is null, then create a div-object instead of an img-object 2012-02-02 15:29:55 +01:00
Morten Ditlevsen
a42491e272 'redraw' method for Tile.Canvas layer 2012-02-02 15:28:58 +01:00
Morten Ditlevsen
de740148a0 Option to reuse tiles instead of creating and destroying them continuously 2012-02-02 15:07:37 +01:00
Morten Ditlevsen
6f57de7a5a Simplified antialiasing fix - thanks Vladimir. 2012-02-01 10:46:36 +01:00
Morten Ditlevsen
debaf3e0c3 Fix antialiasing on WebKit when calling map.invalidateSize() on a map having an odd width or height (e.g. when resizing a browser window and having set the map width to 100%) 2012-02-01 09:33:56 +01:00
Vladimir Agafonkin
a485d668db Fix incorrect merge of #373 2012-01-25 10:58:08 +02:00
Andy Chosak
cec18094a3 Bug fix related to issue #373. 2012-01-24 13:20:06 -05:00
Vladimir Agafonkin
edb7d25921 Merge pull request #433 from aceiii/master
Attribution control only works after it's added to map.
2012-01-16 06:21:28 -08:00
Jonathan DERROUGH
f684eca40b Marker._map is undefined in Marker.bindPopup()
This would occur when the Map has never been set/reset.
'this._map' is now tested before being accessed with a call to Map.openPopup().
2012-01-14 17:47:28 +01:00
Borin Ouch
a3202fca2a Fix Attribution control behaviour before it's added to map. 2012-01-13 12:55:12 -08:00
Jonathan DERROUGH
09279cdc6e Removed some trailing spaces in 'src/map/Map.js'.
Corrected the way L.Map.locateAndSetView() handles the 'options'
parameter so that it is not overriden anymore.
2012-01-11 20:18:06 +01:00
Vladimir Agafonkin
8c428fb660 Merge pull request #427 from mikolajgrajek/master
Right click (context menu) event on Map.
2012-01-11 09:08:00 -08:00
Mikolaj Grajek
d2994b388d Right click (context menu) event on Map (with default context menu popup
block).
2012-01-11 10:19:37 +01:00
ErshKUS
69885956e6 leaflet-popup class should be always present 2012-01-06 15:40:50 +03:00
ErshKUS
15fe83b150 add options correct class popup 2012-01-06 13:16:24 +03:00
Majiir Paktu
1f45ef7348 Added zoomInvert option to reverse the order in which zooms are numbered. 2011-12-23 12:56:56 -05:00
Alex Graul
57f44bc423 fix issue with 180 longs being clamped to -180 2011-12-21 13:22:07 +00:00
mourner
50a5790072 Fixed empty Polygon constructor issue 2011-12-16 14:16:18 +02:00
mourner
cf8e0ca50e Fixed map.getBounds on a date line cross issue, closed #295 2011-12-16 14:04:45 +02:00
mourner
435b3eea69 Fixed getBoundsZoom regression on small bounds 2011-12-15 15:05:51 +02:00
mourner
2fabb23358 Added Marker zIndexOffset option, closed #65 2011-12-15 14:46:36 +02:00
mourner
80048bddf4 Fixed Safari redraw after popup issue, closed #296 2011-12-15 13:56:29 +02:00
mourner
e50c98863c Added FeatureGroup setStyle and invoke methods, closed #353 2011-12-15 13:25:25 +02:00
mourner
83af28eae9 Fixed GeoJSON date line rendering bug, closed #354 2011-12-15 12:07:35 +02:00
mourner
3595c50b33 Added map zoomstart event, fixed movestart event, closed #377 2011-12-14 16:09:32 +02:00
mourner
36eb9d3cbd fix map drag regression 2011-12-14 15:09:59 +02:00
mourner
873bf10442 Move popup on Marker setLatLng (by @tjarratt), closes #272 2011-12-14 13:42:50 +02:00
mourner
5db85f2a76 Added ImageOverlay load event, closed #213 2011-12-14 13:38:42 +02:00
mourner
8504147844 Restructure handler code 2011-12-14 13:12:54 +02:00
mourner
39ffba339e Handler code refactoring 2011-12-14 12:34:11 +02:00
mourner
877bc7c908 fix whitespace 2011-12-13 17:37:14 +02:00
mourner
4751d1dbea Merge map popup events by @chosak #373 2011-12-13 17:34:56 +02:00
mourner
e5242cec29 Fix LatLngBounds intersects 2011-12-13 17:12:33 +02:00
mourner
12d3dc5e71 Merge Elliptical Mercator fix by @Savvkin 2011-12-13 16:23:22 +02:00
mourner
6f8698b93d Added LatLngBounds intersects method, closed #350 2011-12-13 16:01:04 +02:00
mourner
f68a227680 integrate jshint into Jakefile, minor cleanup 2011-12-12 19:54:03 +02:00
mourner
3776e73c00 Switched to Node + Jake + UglifyJS for building 2011-12-11 22:45:49 +02:00
mourner
c509c55f20 more whitespace fixes 2011-12-10 13:48:45 +02:00
mourner
8c6b5b3df5 Fixed GeoJSON pointToLayer not working inside a GeometryCollection, closed#391 2011-12-09 18:19:58 +02:00
mourner
a9720fcb43 Final jshinting without remorse 2011-12-09 16:51:31 +02:00
mourner
b03f6eff07 Some really heavy jshinting and whitespace fixes 2011-12-09 16:35:15 +02:00
mourner
dc79b10683 More jshinting and whitespace fixes 2011-12-09 12:20:59 +02:00
mourner
fccecb419f Whitespace fixes 2011-12-08 17:53:17 +02:00
mourner
0f23454168 Fixed min zoom recalculation on resize when max bounds enabled 2011-12-07 15:58:06 +02:00
mourner
dd3788f48d Fixed rare polygon/polyline rendering issue, closed #381 2011-12-05 19:47:07 +02:00
mourner
43d87dacde At last, added ability to set max geographical bounds within which users can pan/zoom! Closed #93 2011-12-02 19:04:19 +02:00
mourner
0e81d29168 Fixed fast mouse wheel zoom when approaching min/max zoom 2011-12-02 16:27:26 +02:00
Andy Chosak
5db524ee66 Removed unnecessary parameter. 2011-11-22 11:07:36 -05:00
Andy Chosak
eb9be64bd8 Add map events for popup open/close. 2011-11-22 10:45:43 -05:00
mourner
315ebb1eb5 fix typo in movestart fire 2011-11-18 13:02:46 +02:00
Savva
f54a55858b Fix for Elliptical Mercator projection (y coord corresponds to minor earth radius) 2011-11-02 21:38:12 +04:00
mourner
2c540485d2 Throw error if trying to initialize the same map container twice. Closed #258 2011-10-28 12:23:42 +03:00
mourner
98be07c86b Make layers control expanded on mobile by default (temp workaround). 2011-10-28 12:19:00 +03:00
mourner
70339807ed add urlParams argument to TileLayer constructor 2011-10-27 17:20:12 +03:00
mourner
6c4dd07c51 Build updated 2011-10-26 17:37:18 +03:00
mourner
a6551fa114 Fixed ROOT_URL regression 2011-10-26 16:04:06 +03:00
mourner
9e4286db4a Added Marker unbindPopup method 2011-10-26 16:04:06 +03:00
mourner
ee3e78ce07 don't add click event more than once on bindPopup 2011-10-26 16:04:05 +03:00
Vladimir Agafonkin
fb30bfa21f remove extra semicolon 2011-10-23 09:17:32 +03:00
mourner
5bf0f0e8b7 fix vector flickering in Safari on big maps 2011-10-21 19:39:35 +03:00
mourner
5d339f9abb fix vector regression 2011-10-21 19:35:55 +03:00
mourner
a38f9dd6ae vector code refactoring to fix #339 2011-10-21 17:50:59 +03:00
mourner
11de00ec5b jslinted for fun 2011-10-21 15:53:21 +03:00
Vladimir Agafonkin
13d07ebd72 Added mousemove to paths 2011-10-20 14:29:40 +03:00
Samat K Jain
c59e8b3239 Ignore shift key for touch-enabled browsers
Firefox Mobile (née Fennec) has a bug that sets Event.shiftKey to true
even though the shift key is not depressed:

  https://bugzilla.mozilla.org/show_bug.cgi?id=694268

As a workaround, ignore whether the shift key is depressed for
touch-enabled browsers. This breaks Leaflet’s drag-zoom, but besides
being awkward I’m unsure it consistently worked on other touch-enabled
browsers (did not work for me on Android 2.3 devices w/ Bluetooth
keyboard).
2011-10-14 17:16:13 -06:00
Samat K Jain
ac78c7e144 Better touch feature detection
Rewrite L.Browser.Touch to support feature detection in more browsers
(Firefox in particular). Based on Juriy Zaytsev code:

  https://github.com/kangax/iseventsupported
2011-10-14 17:11:00 -06:00
mourner
a154f08415 Improved map locate method, added watching and more options 2011-10-05 16:02:46 +03:00
mourner
b078e0236e Turn off world copy jump if continuous world is turned on 2011-10-05 16:02:46 +03:00
Vladimir Agafonkin
3e1f7726f6 Fixed marker regression as pointed out by @shramov 2011-09-30 21:43:07 +03:00
mourner
d15d20bbf8 Fixed Marker setIcon breaking if marker isn't added to the map, closed #311 2011-09-29 14:42:13 +03:00
Charlie Savage
7fb61dad90 Fix map refernce for _onDragEnd method. 2011-09-23 14:12:00 -06:00
Vladimir Agafonkin
14ba939f5f Fixed error when calling setRadius before adding circle to the map, closed #307 2011-09-23 22:44:55 +03:00
mourner
be575a6622 Clear transition step interval timer one more time (to make sure it doesn't leak), related to #231 2011-09-23 18:18:43 +03:00
mourner
04afa9b813 Fixed performance drop when calling panTo or setView to the current center, closed #231 2011-09-23 18:15:24 +03:00
mourner
fe443d3d50 Fixed regression in Draggable (click triggers after dragging), closed #306 2011-09-23 17:03:36 +03:00
mourner
106054140b A better attempt at the copy world problem, hopefully closed #273, fixed #293, fixed #294, closed #288 2011-09-23 16:55:47 +03:00
mourner
9fad3d0b40 cleanup, fix IE6 events error 2011-09-20 17:03:35 +03:00
mourner
87e5cba374 Fixed whitespace 2011-09-20 16:27:08 +03:00
mourner
a7d2b16543 Fixed a bug related to panning getting stuck after releasing the mouse over an iframe or flash, closed #64 and #166 2011-09-20 16:22:30 +03:00
mourner
2954a4264f Merge remote-tracking branch 'origin/master' 2011-09-20 14:59:01 +03:00
mourner
9fe47c9103 Minor cleanup, tested WebStorm git integration 2011-09-20 14:19:11 +03:00
Dino Ravnić
5a5493ee04 don't proceed with invalidation if map is not loaded 2011-09-19 23:56:18 +01:00
Dino Ravnić
1c5f4716b2 if map is not loaded don't fire mouse events 2011-09-16 18:04:22 +01:00
Vladimir Agafonkin
6a71ea2d4e Merge pull request #290 from giscloud/tileunload.fix
firing tileunload when a layer is being reset
2011-09-14 10:23:26 -07:00
Vladimir Agafonkin
73d6fb6c0a Fixes IE problem introduced in a recent commit, #292 2011-09-14 20:19:50 +03:00
Dino Ravnić
e86b632a8c firing tileunload when a layer is being reset 2011-09-12 14:33:27 +01:00
Mourner
e4c08caf47 Fix overlay positions when panning to a copy of a world, close #273 2011-09-09 16:32:43 +03:00
Mourner
d9f9cbfd2e added TileLayer zoomOffset option (thanks to @msaspence) 2011-09-09 14:30:56 +03:00
Mourner
1d86c969be Fix vector layer click events for iOS, close #204 2011-09-09 12:52:28 +03:00
Mourner
b0205094c1 Fix initializing map in a non-empty div, close #278 2011-09-08 12:23:22 +03:00
Mourner
3797bb74f9 Fix mouse events propagating on attribution control, close #279 2011-09-08 12:11:49 +03:00
Mourner
7ce750a3b7 more on #281 2011-09-08 12:11:14 +03:00
Mourner
63d57d1640 Merge branch 'master' of git@github.com:CloudMade/Leaflet.git 2011-09-08 12:01:52 +03:00
Mourner
fde7c7960a don't add the same listener twice, close #281 2011-09-08 12:01:21 +03:00
Mourner
57a6013d45 minor cleanup 2011-09-08 12:00:40 +03:00