Commit Graph

337 Commits

Author SHA1 Message Date
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
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
Vladimir Agafonkin
a485d668db Fix incorrect merge of #373 2012-01-25 10:58:08 +02: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
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
mourner
50a5790072 Fixed empty Polygon constructor issue 2011-12-16 14:16:18 +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
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
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
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
fccecb419f Whitespace fixes 2011-12-08 17:53:17 +02:00
Andy Chosak
eb9be64bd8 Add map events for popup open/close. 2011-11-22 10:45:43 -05: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
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
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
Vladimir Agafonkin
13d07ebd72 Added mousemove to paths 2011-10-20 14:29:40 +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
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
9fe47c9103 Minor cleanup, tested WebStorm git integration 2011-09-20 14:19:11 +03:00
Dino Ravnić
e86b632a8c firing tileunload when a layer is being reset 2011-09-12 14:33:27 +01:00
Mourner
d9f9cbfd2e added TileLayer zoomOffset option (thanks to @msaspence) 2011-09-09 14:30:56 +03:00
Dino Ravnić
5c1fa83b63 moved viewreset event handler to a callback function
- before event handler wasn't removed and causing this event to fire on removed layers as well
2011-09-04 22:05:26 +01:00
Mourner
f5ceabf158 cleanup, update changelog 2011-08-31 15:10:40 +03:00
Vladimir Agafonkin
d36d4b514c Merge pull request #256 from CodeJosch/tileunload
Fire a "tileunload" when tiles removed
2011-08-31 05:03:26 -07:00
CodeJosch
3a6efaa350 Array access => tile 2011-08-30 17:32:47 +02:00
CodeJosch
2b54c28890 Pass object 2011-08-30 17:28:45 +02:00
Kevin Mahoney
a0d8d304c6 Extend the GeoJSON layer from FeatureGroup to allow click events. 2011-08-30 15:50:12 +01:00
Jochen
900711b59a fire a "tileunload" when tiles removed 2011-08-16 16:58:21 +02:00
Jason Sanford
da379754b1 Moving "getBounds" from L.Path to L.Polyline as some descendants of L.Path dont' have a "getLatLngs" method. 2011-08-15 07:25:54 -06:00
Jason Sanford
9e6d976449 Adding "getBounds" method to L.Path and a debug page to show it in use. 2011-08-14 22:31:13 -06:00
Mourner
83372eb0ed fix marker setLatLng in case it's called before adding #222 2011-08-11 15:43:40 +03:00
Vladimir Agafonkin
ce72298d66 Merge pull request #240 from giscloud/master
bugfix in the layer _reset method
2011-08-10 12:37:11 -07:00
Dino Ravnić
56382fcefd fixed an error at uninitialized layer container 2011-08-10 20:18:28 +01:00
Mourner
6dd915a1e5 Fix IE6-8 popup close button error, closes #235 2011-08-10 15:21:02 +03:00
Vladimir Agafonkin
0c887fe7ef Merge pull request #237 from giscloud/master
Fixed not clearing old tiles
2011-08-10 05:10:28 -07:00
Mourner
9aee9dc68a TileLayer continuousWorld option, related to #236 2011-08-10 15:06:16 +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
Dino Ravnić
3e61594205 when tile option noWrap is set, checking if tile x coordinate is valid 2011-08-09 23:47:57 +01:00
Dino Ravnić
9532db6d08 fixed not decreasing total tile count when a tile is being discarded 2011-08-09 21:55:43 +01:00
Mourner
9334d78ce4 todo comment 2011-08-04 12:29:33 +03:00
Mourner
c02053825d circle clipping 2011-08-04 12:28:47 +03:00
Mourner
8a004bc54b revert #221, as it causes flickering on zoom animation 2011-08-02 11:09:12 +03:00
Neno
8ac92f2303 Method TileLayer._reset now first cleans old container HTML and then initializes a new one.
This should remove a bug with using Map.setView() when old tiles would remain visible after the view has been reset.
2011-07-31 19:20:53 +01:00
Vladimir Agafonkin
2c149abd18 Merge pull request #214 from marphi/minWidthInPopup
add minWidth to Popup, fix calculation _containerWidth
2011-07-29 02:39:57 -07:00
Marcin Sikon
a29e22c3d2 Marker.js: this._reset() after set new icon, because the icon element has no set position 2011-07-29 11:19:15 +02:00
Marcin Sikon
4e3667d7fa fix my previous mistake with offsetWidth 2011-07-28 23:11:19 +02:00
Marcin Sikon
a9dc7e0dd3 add minWidth to Popup, fix calculation _containerWidth 2011-07-27 09:00:10 +02:00
florianf
6c37eda53a Implemented removing of canvas layers. Fixes #172 2011-07-24 14:56:42 +02:00
Mourner
7d41f80b9b Fix layer ordering in Control.Layers 2011-07-21 12:05:59 +03:00
Vladimir Agafonkin
876de46b2f Merge pull request #194 from anru/multipoly
Add method setLatLngs to L.MultiPolygon and L.MultiPolyline
2011-07-21 00:40:49 -07:00
Andrey Rublev
78c51b06b0 Add method setLatLngs to L.MultiPolygon and L.MultiPolyline 2011-07-21 11:29:28 +07:00
Mourner
f87a6583dd Close marker popup on marker removal (merge Rick's pull) 2011-07-20 16:53:48 +03:00
Mourner
189e532dd7 fix potential Safari crashes and tile load errors 2011-07-20 16:28:11 +03:00
Andrey Rublev
263a5b9b5f Add method Polyline.closestLayerPoint
Also fix method L.LineUtil.simplify for empty geometry
2011-07-20 13:23:04 +07:00
Rick Harris
d1997386fd Remove marker popups when marker is removed 2011-07-13 13:46:57 -04:00
Mourner
0936b5e18c map#hasLayer, ability to add tile layers below all others 2011-07-12 20:18:22 +03:00
Jason Sanford
209471c0fa Path.setStyle didn't return "this". I assume it is supposed to. 2011-07-05 21:32:15 -06:00
Mourner
5f07e8bfc2 fix crash on Android 3, closes #137, #160 2011-07-04 15:01:38 +03:00
Mourner
9c19796f25 rely more on feature detection instead of ua string, closes #142 2011-06-23 14:41:47 +03:00
Mourner
fd62d391f4 fix indentation, use documentFragment when adding tiles, closes #152 2011-06-23 14:28:31 +03:00
mourner
baa90b5d45 fix broken canvas layer positioning in FF, closes #156 2011-06-23 09:25:27 +03:00
Mourner
fd94ffd665 remove accidental console.log 2011-06-22 19:05:44 +03:00
Mourner
77e1459347 don't draw circles that are off the clip region, closes #141 2011-06-22 19:03:11 +03:00
Mourner
d999ab1d01 path canvas fixes (make sure there's no accidental styling) 2011-06-22 18:34:26 +03:00
Mourner
8cdb7069e1 fix regression that caused 'L_PREFER_CANVAS undefined' error 2011-06-22 17:17:22 +03:00
Mourner
6163fd755c click tolerance for polylines 2011-06-22 13:27:03 +03:00
Mourner
4273df1f99 fix circle drawing bug 2011-06-22 12:26:03 +03:00
Mourner
a0a2064a7b remove duplication in canvas code 2011-06-21 18:09:04 +03:00
Mourner
a21f1ebc7a removed excessive line 2011-06-21 18:04:49 +03:00
Mourner
7e22f3426c vector namespaces/consants refactoring 2011-06-21 17:58:26 +03:00
Mourner
f8f44401d7 move SVG-specific code into a separate file 2011-06-21 16:19:55 +03:00
Mourner
032ee9331b fix canvas polygon click on border 2011-06-21 14:46:16 +03:00
Mourner
436915617a canvas polygon clicks through ray casting (yay!), refactoring 2011-06-21 14:37:34 +03:00
Mourner
b257c022e3 move path canvas code to a separate folder 2011-06-21 14:05:51 +03:00
Mourner
a46c9040a7 canvas polyline click events 2011-06-21 14:04:35 +03:00
Mourner
f80674a9e3 refactoring, cleanup, take strokeWidth into account in circle click 2011-06-21 13:02:45 +03:00
Mourner
0009ceb9c6 merge Florian's pull, fixes, cleanup, circle click, added todos 2011-06-21 11:43:31 +03:00
Mourner
5d7db12542 Merge branch 'master' of https://github.com/florianf/Leaflet into path-canvas 2011-06-21 10:08:23 +03:00
Mourner
10ffc32ea7 cleanup jonny's pull 2011-06-21 10:06:47 +03:00
Jonny Gerig Meyer
593a3c0380 Fixed support for Popup closePopupOnClick option. 2011-06-20 18:07:39 -04:00
Jonny Gerig Meyer
aa036b93ba Added support for Popup closeButton option. 2011-06-20 18:02:14 -04:00
florian
f3205aab50 Changed implementation as discussed in first push request. 2011-06-20 20:27:09 +02:00
florian
7d5be23a25 Added special class for circle canvas rendering 2011-06-20 20:16:16 +02:00
florian
a316351364 Removed debug code from canvas renderer. 2011-06-20 10:17:40 +02:00
florian
c8a105fbee Set updateOnMoveEnd true for circle, so it can be updated by canvas renderer. 2011-06-20 10:16:55 +02:00
florian
c1c79df31f First implementation of a canvas backend for rendering overlays. Currently no events and no polygons with holes are supported. 2011-06-20 10:09:43 +02:00
mourner
3af05ece06 fix error in TileLayer.Canvas 2011-06-18 13:22:39 +03:00
Mourner
457a4355fc parse string coordinates in GeoJSON, closes #136 2011-06-17 16:46:03 +03:00
Jason Davies
eb68a70844 Add noWrap option to TileLayer. 2011-06-16 22:06:19 +01:00
Mourner
233e63af53 minor GeoJSON refactoring, reverse option in coordsToLatLngs 2011-06-16 13:56:39 +03:00
Mourner
40a1ebf5c3 minor Path refactoring, update build after Jason commits 2011-06-16 12:15:17 +03:00
Jason Sanford
f761fa0332 Adding private _redraw method. This should fix #124 2011-06-15 23:17:52 -06:00
mourner
a1efe42a6d fix global map var regression, closes #117 2011-06-13 22:17:04 +03:00
Vladimir Agafonkin
bb22c4aa5d Merge pull request #116 from carljm/multipoly-setstyle
Added setStyle method for MultiPolyLine and MultiPolygon.
2011-06-11 23:01:37 -07:00
Carl Meyer
367db80cf6 Added setStyle method for MultiPolyLine and MultiPolygon. 2011-06-11 19:51:37 -05:00
Carl Meyer
2dc06b5239 Fixed MultiPolygon bug in GeoJSON support. 2011-06-11 18:11:08 -05:00
Mourner
7772651114 moved CircleMarker radius to options, 10 by default 2011-06-10 17:15:45 +03:00
Mourner
5c2e3a511f popup fixes, marker setIcon 2011-06-10 16:24:49 +03:00
Mourner
3b58a8bbe7 GeoJSON (finally!), setStyle for paths 2011-06-10 14:26:16 +03:00
Mourner
00a107f162 add MultiPolygon and MultiPolyline layers 2011-06-10 12:45:34 +03:00
Mourner
43b3bdc143 added LayerGroup and FeatureGroup layers 2011-06-10 12:38:24 +03:00
Mourner
9514712bb6 fix potential memory leak, closes #107 2011-06-09 14:43:23 +03:00
Mourner
4897241427 TileLayer setOpacity method, fixes #102 2011-06-07 11:38:56 +03:00
Mourner
49c0b0dcd8 more TileLayer onRemove fix 2011-06-03 17:42:54 +03:00
Mourner
dc84cb1fd3 fix bug with removing/readding tile layers 2011-06-03 16:59:14 +03:00
Mourner
0b1a2bca4d Popup now accepts HTML element as content too, fixes #9 2011-06-03 14:40:11 +03:00
Mourner
522fd7a78e fix bug with click propagation on popup close button, fixes #99 2011-06-03 14:32:17 +03:00
Mourner
c67bc5a031 #96 2011-06-03 13:54:07 +03:00
Mourner
a2729351be fix popup setContent, fixes #94 2011-06-03 12:55:06 +03:00
Mourner
c8f1e95236 fix bug with some tiles not loading, fixes #97, update changelog 2011-06-03 12:36:38 +03:00
Mourner
cc1aabbd95 fix bug with some tiles not loading in tms layer, fixes #97 2011-06-02 16:47:50 +03:00
Mourner
bc63a2eec8 async option in TileLayer.Canvas 2011-06-02 16:29:47 +03:00
Mourner
cef1e2a931 fix TileLayer.Canvas regression 2011-06-01 14:54:38 +03:00
Mourner
95d58b5e87 fix regression in Circle, fixes #92 2011-05-31 16:11:21 +03:00
Mourner
be5b4a6284 fix accidental global var 2011-05-31 13:07:01 +03:00
Mourner
ed168a30b2 fix tile loading regression, fixes #87, fixes #91 2011-05-31 11:59:15 +03:00
mourner
600c9619c3 Revert getTarget-related refactoring, fixes #87 (IE8 error) 2011-05-31 01:27:19 +03:00
mourner
876bb4f69d finished projections improvement 2011-05-31 00:37:48 +03:00
Mourner
791ed9f297 title option for markers, fixes #86 2011-05-30 17:08:53 +03:00
Mourner
96e216ba14 fix WMS tiles not loading near date line 2011-05-30 16:24:59 +03:00
Mourner
f36a2f91af fix accidentally broken tiles in IE6-8, fix SVG in IE9, fixes #83 2011-05-30 15:20:08 +03:00
Mourner
138cc723b5 Merge branch 'tms' of https://github.com/tmcw/Leaflet into tmcw-tms 2011-05-30 11:10:53 +03:00
Tom MacWright
d5e5f33d79 Adding TMS support to Leaflet with a scheme: 'tms' option. 2011-05-27 13:39:25 -04:00
Mourner
0a43384d64 TileLayer.Canvas 2011-05-27 20:20:54 +03:00
Mourner
194edd32a6 canvas tile layer 2011-05-27 19:13:28 +03:00
Mourner
9863c0c6a0 tile layer refactoring 2011-05-27 18:36:11 +03:00
Mourner
b6b7612b0a minor Polyline methods improvements 2011-05-25 19:12:52 +03:00
Mourner
ec3c899b64 Poly addLatLng, setLatLngs, spliceLatLngs methods, fixes #74 2011-05-25 18:57:58 +03:00
Mourner
80c7c9d32d several marker bugfixes, fixes #66 2011-05-23 14:19:44 +03:00
Mourner
089052e40d TileLayer opacity option 2011-05-23 14:09:15 +03:00