Commit Graph

1665 Commits

Author SHA1 Message Date
danzel
e54bc27a18 When zooming, if the current foreground layer doesn't have many tiles and the current background layer does, keep the current background layer rather than swapping in the current foreground. Makes continuous zooming look more awesome, rather than going blank after 2 quick zooms. (Has a big of debug output to be cleaned up later) 2012-06-13 14:19:30 +12:00
Pavel Shramov
03a84a9a84 polyline: Don't reinitialize MarkerGroup
If updateMarkers is called without add/remove old
markers are removed but new don't appear on map
2012-06-12 16:16:34 +04:00
Pavel Shramov
cacf112494 polyline: Fix old position of middle point
When marker position changed and middle point is clicked (not dragged)
old coordinates are used for new point.
2012-06-12 16:16:34 +04:00
Paolo e Stefano Mainardi
4aed9ed533 Keep geometry object on "featureparse" event. 2012-06-04 03:15:59 +03:00
Paolo e Stefano Mainardi
0ca0f2275a Add coordinates to featureparse event. 2012-06-04 03:04:38 +03:00
Vladimir Agafonkin
53afad9041 update build 2012-06-02 10:55:59 +03:00
Vladimir Agafonkin
02c3e9b9f3 Merge pull request #700 from shramov/polyline-edit-fix
polyline: Remove deleted marker from internal list
2012-05-25 08:21:05 -07:00
Pavel Shramov
95ae759632 polyline: Remove deleted marker from internal list
When marker is deleted from line it's left in internal _markers list.
2012-05-25 19:18:53 +04:00
mourner
3c8495b6f3 Fixed layers control in IE7, closed #652 2012-05-16 16:39:03 +03:00
mourner
796105a9a4 fix debug files for IE6 2012-05-16 15:34:36 +03:00
mourner
970f7fc08d update changelog 2012-05-16 14:00:33 +03:00
mourner
64a2dd5301 update build 2012-05-16 12:42:01 +03:00
Vladimir Agafonkin
13d861360f Merge pull request #682 from cfis/tilesLoaded
Make sure TileLayer load event is fired
2012-05-15 16:15:34 -07:00
Vladimir Agafonkin
7a056b660f Merge pull request #683 from cfis/tileLayersToLoad
_tileLayersToLoad Cleanup
2012-05-15 16:14:21 -07:00
Vladimir Agafonkin
7d46fdd2b4 Fix error with removing GeoJSON, closes #685 2012-05-16 02:13:15 +03:00
mourner
c9d6144c53 bring marker icon back (oops!) 2012-05-14 11:59:11 +03:00
Charlie Savage
a04e4372e8 When a tileLayer is added or removed form a map, the _tileLayersNum property is appropriately updated but the _tileLayersToLoad is not. It is not updated until resetView, but that is called after the method _onTileLayerLoad is called. Thus, if you add one tile layer the _tileLayersToLoad is zero and when _onTileLayerLoad is called the values is decremented to -1.
This in the end doesn't make a difference on the initial zoom level of a map because _onTileLayerLoad also checks to see if there is a background tile layer, which there is not until after a first zoom.  However, this seems to me a bug waiting to happen, thus the patch.
2012-05-12 17:32:04 -06:00
Charlie Savage
da29f47e25 The load event for a tile layer is only fired after all tiles are loaded. However, the previous code only took into account successful tile loads. It is legitimate for a tile load to cause an error - you might be zoomed out on a map and are pulling a non-existent tile (especially on indoors maps). This patch takes into account both successful and unsuccessful tile loads. 2012-05-12 17:22:53 -06:00
mourner
0a6e8d87b7 update build 2012-05-10 17:17:04 +03:00
mourner
9bf54700b0 rename marker image 2012-05-10 17:16:51 +03:00
mourner
c188756573 Merge remote-tracking branch 'origin/master' 2012-05-10 17:08:14 +03:00
mourner
dbf507c844 update jshint settings 2012-05-10 17:04:48 +03:00
mourner
6f40aeeb97 refactor icon and default marker image paths, wrap library in a function 2012-05-10 17:03:50 +03:00
Vladimir Agafonkin
2678acde38 Merge pull request #678 from SpotSpecific/master
Fixing indentation in Retina Display compatibility code
2012-05-10 05:52:17 -07:00
Graeme West
8b2bda9bc3 Converting spaces to tabs for consistency. 2012-05-10 11:45:06 +01:00
Graeme West
081b75b6e8 Fixing indentation so that Leaflet compiles. 2012-05-10 10:05:54 +01:00
mourner
be647f1b20 Make any Circle visible even on low zoom levels 2012-05-10 11:12:59 +03:00
mourner
70f9d3006b CR LF -> LF 2012-05-10 11:11:52 +03:00
mourner
7956c8c87e limitExecByInterval fixes 2012-05-10 11:09:30 +03:00
Vladimir Agafonkin
1de934ef7e Merge pull request #586 from Mithgol/master
Detect retina displays and adjust tileSize accordingly
2012-05-10 01:00:58 -07:00
Vladimir Agafonkin
7f1bfa702c Merge pull request #671 from naehrstoff/patch-1
Fix feature detection for IE9 when drawing SVG paths
2012-05-07 07:42:20 -07:00
Peter Gassner
b0486f2e0b Fix feature detection for IE9 when drawing SVG paths 2012-05-07 16:56:30 +03:00
emartinez
e1832377a5 Merge branch 'master', remote-tracking branch 'origin' 2012-05-07 07:11:04 -06:00
Vladimir Agafonkin
27a5f7414f Merge pull request #669 from cfis/editingFix
Check this.edit is set
2012-05-07 01:15:02 -07:00
Charlie Savage
d6af5e8e03 this.edit is not always set for polygons - this happens to us for example when loading from geojson. This patch makes sure that this.editing is set before checking whether editing is enabled. 2012-05-07 00:05:47 -06:00
Vladimir Agafonkin
8528b38b79 Merge pull request #667 from tagliala/ie6-filter-fix
ie6 filter clearing fix
2012-05-05 06:23:20 -07:00
Geremia Taglialatela
434e09f01b ie6 filter clearing fix 2012-05-05 13:13:07 +02:00
Eric Martinez
3d78a8feef Cleaned up use of defaults. 2012-05-05 00:36:07 -06:00
Eric Martinez
b937d993c1 Removed legacy code that caused console errors. 2012-05-05 00:30:45 -06:00
Eric Martinez
96b5e510c5 Merge remote branch 'upstream/master' 2012-05-04 23:51:44 -06:00
Eric Martinez
a69477abcf Created a focus handler for the map. Converted keyboard handler to make use of new focus events. 2012-05-04 23:46:15 -06:00
Eric Martinez
20bec613ec Support for map.options.keyboardPanOffset and map.options.keyboardZoomOffset. Use these to configure how far the keyboard controls will pan/zoom the map (respectively). 2012-05-04 22:31:59 -06:00
Eric Martinez
aaa0721073 Reversed up/down arrow pan direction. Some noted the inverted style is not expected. 2012-05-04 22:19:48 -06:00
emartinez
72e5300097 Merge remote-tracking branch 'upstream/master' 2012-05-03 14:46:43 -06:00
emartinez
4fa5918956 Updated keyboard handler to be more flexible/extensible. Calls to map.keyboard.setZoomOffset and map.keyboard.setPanOffset can change the behavior of this handler. 2012-05-03 13:01:26 -06:00
emartinez
909fac4be7 Corrected click handler for click-out events properly. 2012-05-03 12:18:33 -06:00
emartinez
765e07d69c Created keyboard handler for map panning/zooming. 2012-05-03 11:00:30 -06:00
Vladimir Agafonkin
0bd0c1a95a Merge pull request #657 from ericmmartinez/master
Patch for L.Control#setPosition
2012-05-03 07:55:53 -07:00
Vladimir Agafonkin
dfb04aa5e9 Merge pull request #655 from Guiswa/master
Add getLatLng() and getRadius() methods to L.Circle.
2012-05-03 07:55:00 -07:00
emartinez
cfbf31721b Patch so setPosition works properly on Control. 2012-05-01 18:04:27 -06:00