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
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
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
7d46fdd2b4
Fix error with removing GeoJSON, closes #685
2012-05-16 02:13:15 +03: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
c188756573
Merge remote-tracking branch 'origin/master'
2012-05-10 17:08:14 +03:00
mourner
6f40aeeb97
refactor icon and default marker image paths, wrap library in a function
2012-05-10 17:03:50 +03: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
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
Peter Gassner
b0486f2e0b
Fix feature detection for IE9 when drawing SVG paths
2012-05-07 16:56:30 +03: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
Aaron King
69aa3500ff
Add getLatLng() and getRadius() methods to L.Circle.
2012-04-30 15:52:23 -07:00
Mithgol the Webmaster
a8fa869a41
includes fixes provided by Max Ogden
2012-04-08 05:10:32 +04:00
djomp
ecec332504
Fix for passing jake jshint
2012-04-03 10:42:29 +02:00
Reed
a73b812fe1
fixed _checkIfEmpty in Circle.js with check for _map property
2012-04-01 15:39:00 -04:00
Mithgol the Webmaster
cc0fc0e5b7
adjust zoom levels as well (otherwise markers seem mispositioned)
2012-03-30 09:46:31 +04:00
Mithgol the Webmaster
443181af07
detectRetina is optional (false by default) to prevent map features (like city titles) from being too small to read on retinal tiles
2012-03-26 19:57:12 +04:00
Mithgol the Webmaster
97cd41e9f5
correction: window.devicePixelRatio > 1 becomes false even if devicePixelRatio is undefined
2012-03-16 10:53:54 +04:00
Mithgol the Webmaster
c7e29b5a87
detecting retina displays, adjusting tileSize
2012-03-16 09:44:07 +04:00
mourner
b333f86e1d
fix superclass regression
2012-03-09 11:28:14 +02:00
mourner
9081e9a00c
Merge branch 'master' of github.com:CloudMade/Leaflet
2012-03-07 00:08:17 +02:00
Vladimir Agafonkin
14f1a6a947
Merge pull request #557 from JasonSanford/feature-group-bounds
...
Adding getBounds method to FeatureGroup.
2012-03-06 07:13:07 -08:00
Mattias Bengtsson
e27f4cbcbd
Make Leaflet build again.
2012-03-06 15:18:53 +01:00
Jason Sanford
713a3a702f
Adding getBounds method to FeatureGroup.
2012-03-03 22:54:50 -07:00
mourner
e5f934e97f
more global refactoring
2012-03-04 00:42:50 +02:00
mourner
0474023675
initial global refactoring
2012-03-03 17:02:20 +02:00
Vladimir Agafonkin
20c0bad37e
Merge pull request #548 from mehmeta/contentupdated
...
Added contentupdated event to popup
2012-03-03 05:51:33 -08:00
Vladimir Agafonkin
e9d9a021d3
Merge pull request #552 from mehmeta/polyedit
...
Bugfix: Proper cleanup of marker editing handler when it is disabled.
2012-03-03 05:50:48 -08:00
Mehmet Alkanlar
cf52a5168b
Moving it inside the if clause makes more sense.
2012-03-02 15:52:53 -07:00
Mehmet Alkanlar
5437de4116
Bugfix: Proper cleanup of marker editing handler when it is disabled.
...
This fixes a critical bug which occurs if editing is enabled, disabled
and enabled again. Since line 16 checks for existence of marker group
reference, markers never get reinitiated, causing the handler to use
the old ones, which may have been changed in the last editing session.
2012-03-02 15:43:35 -07:00
Mehmet Alkanlar
85ae6d9192
Renamed the event according to conventiions
2012-02-29 17:11:24 -07:00
Mehmet Alkanlar
925ffd6538
Fixed bugs on polyline editing regarding edge cases
...
This commit fixes couple bugs. One of them is polylines (or polygons)
can be reduced to a single point by clicking on markers to remove
them. Second, if an edge point is clicked for a polyline (not
applicable to polygons since they are a circular linked list) code
produces a js error since previous or next might not be present.
2012-02-29 15:35:35 -07:00
Mehmet Alkanlar
cbe7e9795f
Added contentupdated event to popup
2012-02-29 15:24:21 -07:00
mourner
401a6e2224
Added originalEvent to Marker mouse events, closed #408
2012-02-26 01:14:42 +02:00
mourner
0f914b6409
fix regression with tile loading
2012-02-24 22:48:22 +02:00
mourner
2e9551dbe9
Merge branch 'inertia'
2012-02-24 17:20:44 +02:00
mourner
0299c02d27
Fixed world wrapping regression, closed #526
2012-02-24 17:17:00 +02:00
mourner
8ba23eb393
Don't do tile update when animation is in progress
2012-02-24 16:51:10 +02:00
Jason Sanford
a7081e6927
Fixing typo in Rectanlge.js description. Adding Rectangle.js to dependencies.
2012-02-23 14:02:10 -07:00
mourner
de8274831b
Merge branch 'master' into inertia
2012-02-23 16:37:57 +02:00
mourner
477c1109eb
clean up, move attribution prefix arg to options
2012-02-23 11:01:03 +02:00
mourner
08dccbc71c
fix some more whitespace
2012-02-23 10:52:49 +02:00
mourner
d728779bc6
fix controls regression
2012-02-23 10:47:19 +02:00
jpk
5f9bd71f61
Fixes click (without drag) on middle marker to fire 'edit'.
2012-02-22 20:24:05 -05:00
jpk
fb255798dd
Makes polygon/line edits fire('edit') only on dragend.
2012-02-22 20:10:07 -05:00
jpk
62f3b6faeb
Merge remote-tracking branch 'upstream/master' into fire_edit_on_drag_vertex
2012-02-22 20:09:46 -05:00