Mihai Varga
bcdf048d6d
Merge adjacent selection rectangles into a single polygon
...
+ the document is scrolled to the average center of the rectangles
if that is out of the viewing area
2015-05-25 16:54:29 +03:00
Mihai Varga
139bae53c1
Fixed the incorrect tile rendering after zooming problem
...
Leaflet originally discarded tiles from different zoom levels
and I initially thought setting the opacity to 0 will be enough
and this way tiles will remain in cache.
But this does not work so tiles are now removed from the dom tree
and added in a cache to be later reused
2015-05-22 14:35:06 +03:00
Tor Lillqvist
95b25f2de7
Add a spec file for leaflet to package it
...
Ugly hack.
2015-05-20 20:46:12 +03:00
Mihai Varga
a59dd5d278
Forgot to remove debugging output
2015-05-20 18:51:15 +03:00
Mihai Varga
19e94da931
Handle 'searchnotfound' command
2015-05-20 16:54:40 +03:00
Mihai Varga
531cccc026
Mouse handlers
...
It works for: click, dblclick and dragging
2015-05-20 16:54:40 +03:00
Tor Lillqvist
12e0a880f6
Revert "We want 'make dist' to actually create a *source* tarball"
...
Nah. Trying to package this JS crack in RPM so that it is buildable from
source on openSUSE does not seem easy. Let's just package the deliverables for
now. Those who want to look at sources can use git.
This reverts commit 434550f352
.
2015-05-20 16:00:47 +03:00
Tor Lillqvist
434550f352
We want 'make dist' to actually create a *source* tarball
...
Use 'git archive' of the loleaflet subdirectory.
2015-05-20 14:59:18 +03:00
Tor Lillqvist
873e7c5102
Add a Makefile to create a tarball
...
Not sure whether this makes sense, but for now...
2015-05-19 14:29:55 +03:00
Mihai Varga
c2f0b5b17d
Pressing enter always searcheas forward
2015-05-18 18:03:26 +03:00
Mihai Varga
51bbdd91ed
Prevent document from jumping when zooming
2015-05-18 17:40:55 +03:00
Mihai Varga
a4391c1017
Fix for stack size limit exceded
2015-05-18 16:10:24 +03:00
Mihai Varga
428f6dbe6f
Match the background color with what LOkit provides
2015-05-18 15:34:21 +03:00
Mihai Varga
40552d424c
Clear selections when the search string is modified
2015-05-18 10:37:20 +03:00
Mihai Varga
249d8fdaf6
Finished the parts control
2015-05-18 10:30:51 +03:00
Mihai Varga
e55d216708
No search result -> the search bar flashes red
...
This still needs work because the search bar will flash
if the user clicks on the map and doesn't select anything.
This will need a proper 'no-result-found' message from the server
2015-05-18 09:15:23 +03:00
Mihai Varga
b482dabe37
Alert when there is a connection error
2015-05-15 18:35:05 +03:00
Mihai Varga
cb33fd5035
Added selection border and set the selection color to: #43ACE8
2015-05-15 17:00:43 +03:00
Mihai Varga
94396cf87b
Searh next/prev searches the latest enterd value
2015-05-15 16:19:59 +03:00
Mihai Varga
40172d3dd5
'Part' command is now parsed and interpreted
2015-05-15 15:14:02 +03:00
Mihai Varga
ed5491921a
Update scrollbars on window resize
2015-05-15 14:37:14 +03:00
Mihai Varga
fe40e3d592
Less space between the toolbar and the document
2015-05-15 13:07:05 +03:00
Mihai Varga
a3cc8784fb
Text mouse cursor (editing cursor)
2015-05-15 13:06:43 +03:00
Mihai Varga
ab86440cb2
Prevent img drawing on mozilla
2015-05-15 12:46:01 +03:00
Mihai Varga
c057a42063
Working text selection by mouse dragging
2015-05-15 12:12:11 +03:00
Mihai Varga
c2c379ac69
Removed unnecessary variables
2015-05-15 12:12:11 +03:00
Mihai Varga
906e9e28fc
Search scrolls to result if it's out of the viewing area
2015-05-13 12:39:57 +03:00
Mihai Varga
5e4225c860
In fact, it is better not to prefix the url
2015-05-13 12:05:13 +03:00
Mihai Varga
04d2b531a1
Check if file:// is added in the url
2015-05-13 12:01:10 +03:00
Mihai Varga
0a7e20e851
Encode spaces in the URL
2015-05-13 11:54:12 +03:00
Mihai Varga
124de292d1
Updated the text selection handler
...
And also removed an unnecessary method
2015-05-13 11:17:34 +03:00
Mihai Varga
e4b1624d2b
Updated the search bar to send the correct command to the server
2015-05-13 11:17:34 +03:00
Mihai Varga
bc23033537
Fixed tiwps->latlng and backwards conversion
2015-05-13 11:17:33 +03:00
Mihai Varga
d78642806a
Removed URL tiles specific methods
2015-05-11 17:55:38 +03:00
Mihai Varga
47e301cc92
Parts command from the server is parsed but not yet interpreted
2015-05-11 17:05:03 +03:00
Mihai Varga
4c6d87231c
Parts control for switching between parts
2015-05-11 17:05:03 +03:00
Mihai Varga
90b3b32bbc
Renamed method to _parseServerCmd
2015-05-11 17:05:03 +03:00
Mihai Varga
13582c7f04
Fixed typo
2015-05-11 17:05:03 +03:00
Mihai Varga
febaaa1900
Mouse event handlers for selection
2015-05-08 15:24:47 +03:00
Mihai Varga
1858147801
Twips to latlng and reverse methods
2015-05-08 15:24:26 +03:00
Mihai Varga
affdbc6ff1
Added search command (from the server) handler
2015-05-08 13:58:13 +03:00
Mihai Varga
5dabc12660
Search bar buttons are updated based on the current search index
2015-05-08 13:56:28 +03:00
Mihai Varga
c622852514
Removed the Draw plugin interface
...
We don't actually need this plugin because the server
dictates how the selection will work.
Will remove the whole plugin when I'm sure this won't have other
applications
2015-05-08 11:44:37 +03:00
Mihai Varga
5bde4775f6
Added cancel search button + search bar sends propper events
2015-05-08 11:10:48 +03:00
Tor Lillqvist
d3acdbb225
String::startsWith is Firefox-only it seems
2015-05-06 18:41:09 +03:00
Mihai Varga
15a889db91
Search bar implemented as a leaflet Control
...
It is not ready yet, buttons' functionality and the search
functionality is to be added
2015-05-06 12:39:03 +03:00
Mihai Varga
57a2663cb9
Search bar bax with prev and next buttons
2015-05-06 10:41:26 +03:00
Mihai Varga
1b5f9b1f22
Readme update that describes how to open a doc
2015-05-06 10:08:56 +03:00
Mihai Varga
bc5bee6751
Smoother scroll without intertia
2015-05-06 09:44:32 +03:00
Mihai Varga
b9351c6fed
Forgot to replace evt.data with textMsg
2015-05-06 09:37:44 +03:00