Mihai Varga
b6671341a7
The map handles keypress events but no panning keys
2015-04-27 10:18:13 +03:00
Mihai Varga
7fa1ae861d
The map should not yet handle keyboard events
2015-04-27 09:57:06 +03:00
Mihai Varga
caf7c2e6c6
The map should not trace a resize event
...
The container div should handle the resize by updating the scrollbars
This fixes the map crash during window resize.
2015-04-24 17:21:38 +03:00
Mihai Varga
497a50c76d
Tiles are added again in batch
...
This gives us smoother and faster tile loading
and a tile is requested just once
2015-04-22 20:49:20 +03:00
Mihai Varga
d0f77df767
Removed image link
2015-04-22 20:15:42 +03:00
Mihai Varga
caf1773e54
The map no longer moves when zooming == smoother zooming
...
The zoomed tiles now perfectly match the new ones that are about
to be received from the server.
The zooming factor is again exponentail (1.2) instead of linear.
TODO: when the window size modifies the gets paned out of the bounds
2015-04-22 17:49:06 +03:00
Jan Holesovsky
0214f331e7
test document: Make it clear the white area is deliberate.
2015-04-22 08:41:09 +02:00
Jan Holesovsky
ff81959c7b
Updated the loleaflet README.
2015-04-21 16:03:48 +02:00
Mihai Varga
37dfad0672
Removed pop that displays pixel location
2015-04-15 14:02:33 +03:00
Mihai Varga
3bf5939f8c
We no longer need the timeout
...
Another commit must have fixed the thing that caused the crash
2015-04-15 10:16:47 +03:00
Mihai Varga
62c394f5bd
This does not work well yet
2015-04-15 10:13:57 +03:00
Mihai Varga
57a0050421
Selection handler in leaflet
2015-04-13 20:46:09 +03:00
Mihai Varga
b666dc7d47
This better handles the scroll percentage after zooming
2015-04-13 10:39:12 +03:00
Mihai Varga
54d0af6fb8
How zoom works
2015-04-10 16:29:01 +03:00
Mihai Varga
144c9ab1df
Fixed some js lint errors
2015-04-10 16:23:23 +03:00
Mihai Varga
2aa7f55ea8
Zooming now works properly
...
The initial zoom level is 10 and it goes to:
1, which is 10% and 20, which is 200%
2015-04-10 16:15:55 +03:00
Mihai Varga
9ecc37d433
Method for adding map controls to the toolbar div
2015-04-10 14:23:46 +03:00
Mihai Varga
565ac27cb6
Readme instruction on how to use archived modules
2015-04-10 10:33:19 +03:00
Mihai Varga
225bbbc24a
Added essential node modules to avoid npm install
2015-04-10 10:29:58 +03:00
Mihai Varga
94f8076332
Map initial maxBounds are set in the constructor
2015-04-08 11:38:45 +03:00
Mihai Varga
4d8028613b
Document is placed in the middle of the screen
2015-04-08 11:01:45 +03:00
Mihai Varga
e0da2747cc
RemoveAll method for removing all selections
2015-04-07 20:21:32 +03:00
Mihai Varga
d8c221b9c2
Renamed tooltips to resemble selection and removed surface area
2015-04-07 20:20:27 +03:00
Mihai Varga
0120711974
Place toolbar items next to each other
2015-04-07 18:01:43 +03:00
Mihai Varga
a212001512
Workaround for drawing shapes bug.
...
Without this shapes cannot be shrunken when they are being drawn.
If draw a shape and then move the mouse inside it (to reduce its size)
the wrong type of event is fired and the shape is not updated.
2015-04-06 17:20:43 +03:00
Mihai Varga
e2d5e35597
README update
2015-04-06 17:14:21 +03:00
Mihai Varga
4b7362ac08
Ignore resulting js files in dist
2015-04-06 17:09:27 +03:00
Mihai Varga
a7f9b427d6
This is generated by the build
2015-04-06 17:06:50 +03:00
Mihai Varga
98e9b6ecb0
Added draw control to the example html doc
2015-04-06 17:02:43 +03:00
Mihai Varga
20195a3f43
Fixed js lint errors
2015-04-06 16:30:09 +03:00
Mihai Varga
f76216071e
Use node modules from leaflet
2015-04-06 16:20:46 +03:00
Mihai Varga
c88e7260a4
This file is generated by the build, no for it to be on git
2015-04-06 12:39:11 +03:00
Mihai Varga
ff700ae813
Added Leaflet.Draw-0.2.4
...
Draw is a plugin that adds support for drawing and editing vectors and
markers on Leaflet maps. This will be used to create selections on the
document.
Source code: https://github.com/Leaflet/Leaflet.draw
Licence: MIT
2015-04-06 12:23:19 +03:00
Mihai Varga
206a2538d6
Container's background color is the same as document's #F0F0F0
2015-04-06 10:09:16 +03:00
Mihai Varga
3fc926348d
Zooming is animated again
2015-04-06 09:55:12 +03:00
Mihai Varga
4d66d025fa
Center restore after zoom
2015-04-03 17:22:19 +03:00
Mihai Varga
f870f78e1d
Prefetch 1 tile wide border around current visible area
...
If the user scrolls slowly he won't notice the loading tiles.
2015-04-03 14:04:01 +03:00
Mihai Varga
54cf584a35
Only load tiles from the visible area (outer container)
...
Previous to this, the whole documnet was loaded because of the way
scrollbars have been added.
Now the visible area is determined by the current scrollbar position
and the outer container's size.
2015-04-03 14:00:59 +03:00
Mihai Varga
67e183105f
This places the controls above the map (in another div)
...
I have no experience with css but this works
TODO: needs proper fixing
2015-04-03 12:01:02 +03:00
Mihai Varga
61210a92a3
Initialize the outer div (container) in map's constructor
...
This will be later used to get the center of the viewspace
2015-04-02 19:36:22 +03:00
Mihai Varga
48c92dd555
Document is no longer dragable and scrollable
...
Mouse scrolling is now actualy scrolling instead of zooming
2015-04-01 13:10:17 +03:00
Mihai Varga
3da367096d
Don't request invalid tiles
2015-04-01 11:24:31 +03:00
Mihai Varga
0811e2eb99
Use L.DomUtil instead of direct element access
2015-04-01 11:12:45 +03:00
Mihai Varga
d1fe237992
Update document info only if given status is different
...
Document info = height and width
2015-03-31 19:55:37 +03:00
Mihai Varga
283b35ab6e
This fixes the loading problem
...
The document now loads and zooms smoothly
2015-03-31 19:51:42 +03:00
Mihai Varga
c22280f47c
Removed unnecessary map._update() call
2015-03-30 19:22:17 +03:00
Mihai Varga
04403ff782
Update div dimension when zooming for the scrollbar
2015-03-30 19:21:21 +03:00
Mihai Varga
4944fcc57d
Detached controls from the map and added scrollbars
...
The "controls" div holds map controls suchs as the Zoom button and
it's separated from the map in order to have the controls on the top
of the page all the time.
The "document-container" div is the actual display of the document, is
what the user sees and it should be no larger than the screen size.
The "map" div is the actual document and it has the document's size
and width, this being inside the smaller "document-container" will
cause the content to overflow, creating scrollbars
2015-03-30 19:20:04 +03:00
Mihai Varga
5d6cbc4ed8
Switched the order in which docPixelLimits is created
2015-03-30 19:18:58 +03:00
Mihai Varga
c6ecfeaf8a
Adapt document loading command to new protocol
2015-03-30 19:16:50 +03:00