Commit Graph

287 Commits

Author SHA1 Message Date
mourner
2d8029e436 Reworked controls to be more flexible (inspired by #480) 2012-02-14 11:40:47 +02:00
mourner
24ff9ce5ec more stable zoom animation 2012-02-12 15:15:33 +02: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
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
Mikolaj Grajek
d2994b388d Right click (context menu) event on Map (with default context menu popup
block).
2012-01-11 10:19:37 +01: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
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
8504147844 Restructure handler code 2011-12-14 13:12:54 +02:00
mourner
4751d1dbea Merge map popup events by @chosak #373 2011-12-13 17:34:56 +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
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
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
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
mourner
2c540485d2 Throw error if trying to initialize the same map container twice. Closed #258 2011-10-28 12:23:42 +03:00
mourner
11de00ec5b jslinted for fun 2011-10-21 15:53:21 +03:00
mourner
a154f08415 Improved map locate method, added watching and more options 2011-10-05 16:02:46 +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
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
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
Mourner
b0205094c1 Fix initializing map in a non-empty div, close #278 2011-09-08 12:23:22 +03:00
Christian Bäuerlein
da02d2aadd call method #getSize on the map instance, not a global object called map 2011-08-23 09:46:50 +02:00
Mourner
6a39725de5 fix requestAnimationFrame in some Chrome/Linux builds 2011-08-15 18:34:58 +03:00
Mourner
28be37ca8e preserve map center after resize 2011-08-11 16:12:58 +03:00
Dino Ravnić
061f3d6832 fixed not clearing old layer content in case of non animated pan or zoom 2011-08-10 12:22:35 +01:00
Mourner
189e532dd7 fix potential Safari crashes and tile load errors 2011-07-20 16:28:11 +03:00
Mourner
0936b5e18c map#hasLayer, ability to add tile layers below all others 2011-07-12 20:18:22 +03:00
Mourner
9c19796f25 rely more on feature detection instead of ua string, closes #142 2011-06-23 14:41:47 +03:00
Mourner
c739bbff22 fix occasional overlay blurriness in WebKit 2011-06-23 13:58:43 +03:00
Mourner
0800c241c1 opera mobile fixes, closes #138 2011-06-17 19:40:27 +03:00
Mourner
e09765a355 remove slow and unnecessary code from zoom anim logic, related to #123 2011-06-16 15:54:51 +03:00
Mourner
13e534d130 pass options to locateAndSetView 2011-06-14 12:13:00 +03:00
Mourner
a2a6ff3728 Supposedly fixed error on iOS 3, closes #113 2011-06-14 12:10:19 +03:00
Jason Sanford
d13fe36e88 Adding options to L.Map.locate that follows the PositionOptions spec for the W3C Geolocation API. You can now pass "enableHighAccuracy" and "maximumAge" to get fresh, accurate positions. 2011-06-13 15:28:06 -06:00
Mourner
dc84cb1fd3 fix bug with removing/readding tile layers 2011-06-03 16:59:14 +03:00
Mourner
2bbdc028ea fix map div absolute position bug, fixes #100 2011-06-03 11:52:51 +03:00
Mourner
e7410e6e03 improve projections support, add EPSG:3395 (real mercator) 2011-05-31 12:36:05 +03:00
mourner
876bb4f69d finished projections improvement 2011-05-31 00:37:48 +03:00
Max Ogden
f12fb251a0 fixing typo 2011-05-23 12:33:03 -07:00
Mourner
1b090074a6 fix map occasionally breaking while zooming on iOS, fixes #32 2011-05-23 12:32:31 +03:00
Mourner
7809accb0e opera fixes 2011-05-20 16:34:45 +03:00
Mourner
5e927b0382 dom mouseenter/mouseleave, map mouseover/mousemove/mouseout events 2011-05-19 18:57:35 +03:00
Mourner
daf6c22a1d set world view on locateAndSetView failure 2011-05-19 17:23:38 +03:00
Mourner
72a1070e87 Improved geolocation error handling, explicit timeout, fixes #61 2011-05-19 15:27:59 +03:00
Mourner
a3c029bf37 Merge remote branch 'origin/master' 2011-05-16 19:41:33 +03:00
Mourner
ff6968f048 remove console.log 2011-05-16 17:45:49 +03:00
Mourner
2f4e81ab3a fix clearing tile background on zoom 2011-05-16 17:45:35 +03:00
Mourner
ca151369a8 temporarily disable zoom animation on Android (until it gets stable),
related to #32
2011-05-14 19:40:26 +03:00
mourner
66f00bf875 more chaining, update build 2011-04-27 18:02:58 +03:00
mourner
d1b28c5d85 geolocation update 2011-04-27 17:38:50 +03:00
mourner
6ce60cadc7 fix popup autoclose, fixes #40 2011-04-27 14:06:47 +03:00
Mourner
ba28ce77bf fix IE, fix attrib control styling, update build 2011-04-15 11:56:48 +03:00
Mourner
d8bcfef1a3 initial attribution control implementation 2011-04-14 18:48:14 +03:00
Mourner
8089ff04a0 fix clearing scaled tiles 2011-04-14 18:07:16 +03:00
Mourner
4003a9d9b0 zoomAnimation option 2011-04-14 18:04:33 +03:00
Mourner
9fc8f1ff5d clear scaled tiles after new ones are loaded, fixes #24 2011-04-14 17:49:34 +03:00
Mourner
b1d9ca7747 some clean up 2011-04-14 16:32:36 +03:00
Mourner
30768b40b8 better webkit transition bug workaround 2011-04-14 16:30:55 +03:00
Mourner
131f909e0a bigger controls on mobile, update build 2011-04-14 16:12:05 +03:00
Mourner
895d171648 android fixes, zoom animation refactoring, fadeAnimation option 2011-04-14 15:42:48 +03:00
Mourner
8f4a0deea5 geolocation noFitBounds 2011-04-13 14:52:57 +03:00
Mourner
fbb31dbe3c zoomControl option in map, fixes #31, update build 2011-04-12 18:26:35 +03:00
Mourner
5a0894860e e.position -> e.latlng 2011-04-12 18:14:07 +03:00
Mourner
5394f0163c Merge remote branch 'origin/master' 2011-04-12 12:02:16 +03:00
Mourner
b475bb8da0 workaround for a webkit transition bug, fixes #10 2011-04-12 12:01:46 +03:00
mourner
ef8b0c9a9b oops, remove console.log 2011-04-11 23:51:56 +03:00
mourner
7162bd4930 refactor popup code, merge marker dragging from msaspence 2011-04-11 23:43:23 +03:00
mourner
b22349c1c0 Merge branch 'master' of https://github.com/msaspence/Leaflet into msaspence-master 2011-04-11 22:46:32 +03:00
Matt Spence
ee93d73b69 Refactored marker dragging into MarkerDrag and support for shadows 2011-04-11 19:15:35 +01:00
Matt Spence
805f3b39b9 Added draggability to markers 2011-04-11 16:26:41 +01:00
Mourner
a204511fbe control positioning, basic zoom control, update build 2011-04-11 15:49:15 +03:00
Mourner
90a66c96e1 rework zoom animation, update build 2011-04-07 19:00:55 +03:00
Mourner
90bd2c12b1 remove excessive rounding 2011-04-07 18:59:29 +03:00
Mourner
647da488db fix closure compiler removing useful code 2011-04-01 14:26:28 +03:00
Mourner
9d93998ba2 zoom animation fix and refactoring, works like a charm on iOS now! 2011-03-31 18:34:37 +03:00
Mourner
29b89d18d1 fitWorld 2011-03-31 12:05:14 +03:00
Mourner
a69cb4df15 small handlers refactoring 2011-03-28 15:39:02 +03:00
Mourner
1831051543 small addLayer refactoring 2011-03-23 18:31:19 +02:00
Mourner
306e42a25c refactor map init code 2011-03-22 17:58:35 +02:00
Mourner
6c8ef08382 shift drag zoom 2011-03-21 19:09:43 +02:00
Mourner
23a0f45b3c fix double click zoom animation 2011-03-21 16:02:03 +02:00
Mourner
f2eefe6506 options fix, L.Util.setOptions 2011-03-01 16:27:09 +02:00
mourner
b1df549118 some argument type comments 2011-02-28 00:12:38 +02:00
mourner
047b5c6d1d different performance optimizations 2011-02-27 22:31:46 +02:00
Mourner
d011038bf7 initial vector support, huge commit! 2011-02-25 19:01:29 +02:00
Mourner
348860286c update folder structure 2011-01-21 11:55:08 +02:00
Mourner
410278dd58 close popup on open 2011-01-18 17:25:02 +02:00
mourner
2e28fc5f4f prevent zoom while animation is running 2011-01-16 01:42:26 +02:00
mourner
9e3efaf5f6 animation refactoring 2011-01-16 00:01:16 +02:00
Mourner
be09f97cf2 At last, zooming animation! HUGE commit! 2011-01-14 18:43:40 +02:00
Mourner
5b6a98acee L.DomUtil.create shortcut, refactoring, update build 2011-01-13 12:17:50 +02:00
Mourner
d33529b126 popup refactoring, close button, update build 2011-01-12 18:05:12 +02:00
Mourner
882f1ea598 getBounds 2011-01-12 16:52:21 +02:00
Mourner
9762be03de a couple of todos 2011-01-12 11:44:48 +02:00
Mourner
ad5b885124 add Map#layerPointToContainerPoint 2011-01-11 15:44:09 +02:00
Mourner
97aa394489 fiddling with zoom animation 2011-01-10 13:07:30 +02:00
Mourner
d6dc8acd04 move closePopupOnClick to Map 2011-01-10 13:06:22 +02:00
Mourner
e6eaec9f41 popup fixes 2010-12-15 20:21:38 +02:00
Mourner
739c8e289e popup implementation 2010-12-15 19:55:57 +02:00
Mourner
2348947c73 Marker implementation 2010-12-15 17:14:15 +02:00
Mourner
2b8c1d778e zoomOut, addLayer fixes 2010-12-14 18:10:24 +02:00
Mourner
7e0b87fbb5 provide accuracy in geolocation 2010-11-11 12:37:12 +02:00
mourner
fb06678828 move all animation-related logic from Map.js to Map.Animation.js 2010-09-29 12:12:13 +03:00
mourner
ad7ab3a753 better progressive enhancement 2010-09-29 12:02:03 +03:00
mourner
ec8a941091 fix animated pan 2010-09-29 11:51:59 +03:00
mourner
533d095fef progressive enhancement for animation 2010-09-29 11:22:46 +03:00
mourner
ab00da17a0 trackResize 2010-09-29 10:38:46 +03:00
mourner
284595f335 panning animation 2010-09-28 21:09:53 +03:00
mourner
4abe0d96a4 added trackResize, improved invalidateSize 2010-09-28 20:51:38 +03:00
mourner
d1f1744ca3 jslinted 2010-09-27 18:34:56 +03:00
mourner
d712717053 layers add/remove fix 2010-09-27 18:01:37 +03:00
mourner
c2399defdd layer remove 2010-09-27 17:45:26 +03:00
mourner
0991c7fc78 basic scroll wheel zoom 2010-09-27 13:09:41 +03:00
mourner
679953cfbf overlay refactoring 2010-09-25 17:29:38 +03:00
mourner
2fce845e22 some meaningful renaming 2010-09-24 17:40:24 +03:00
mourner
efbb541fe9 make layer.draw & layer.load optional 2010-09-24 15:49:27 +03:00
mourner
e9c1c0f685 added latLngToLayerPoint; added overlayPane; converted LatLngBounds sw/ne properties to methods. 2010-09-24 15:47:22 +03:00
mourner
4984035a9e map events, double click fix 2010-09-21 15:48:31 +03:00
mourner
e734e20d55 map positioning refactoring 2010-09-21 15:28:13 +03:00
mourner
0178d1c2d1 comments 2010-09-21 12:25:30 +03:00
mourner
0d9dd1c53b rename 2010-09-21 12:17:05 +03:00
mourner
4a7b244a6a options fix 2010-09-21 12:15:56 +03:00
mourner
70a7b7c478 OR fixes 2010-09-21 11:50:02 +03:00
mourner
8a23efb563 Map geolocation 2010-09-21 11:44:04 +03:00
mourner
bc319be35b moved Map, fixed some bugs 2010-09-21 11:43:50 +03:00