Commit Graph

248 Commits

Author SHA1 Message Date
djes
848b817403 Merge pull request #17 from djes/djes
Major update
2018-06-11 23:07:27 +02:00
djes
28c85648ca Merge branch 'master' into djes 2018-06-11 23:06:55 +02:00
djes
55bc5c8f78 Debug mode corrected
Active Window wasn't anymore when console opened
2018-03-17 14:36:44 +01:00
djes
648c9c9a4a Multiple PBMaps WIP
PBMap is now able to handle multiple maps.

Warning : it breaks compatibility with older codes !
InitPBMap() and Quit() are no longer used, only MapGadget() and FreeMapGadget() as in standard PureBASIC gadgets.
All functions should now include the MapGadget id as first parameter.

Now included, the André Beer demo.
2018-03-03 19:26:28 +01:00
djes
1c7b161a87 Multiple PBMaps WIP 2018-03-02 21:55:38 +01:00
djes
12723fab31 Multiple MapGadget bugfix 2018-03-02 19:42:22 +01:00
djes
dfcf0e9f5e Multiple PBMap handling
The internal pbmap structure was unique and shared. Now it is dynamically allocated and returned by the InitPBMap() function. It allows to have multiple PBMap in the same window. Switch is done by the new SelectPBMap() function. Quit() function must be called for each PBMap.
2018-03-01 09:33:52 +01:00
djes
ba26af24e1 GetImageThread() not anymore mutex excluded
Andre and DarkSoul bug tracking. This mutex doesn't seem to have any real utility in this function, as the memory management is already protected by mutex outside, and the tile data has been copied to a private memory area.
2018-02-25 19:32:34 +01:00
djes
a90b44eb6b Two new callbacks to alter tile rendering, and to work on tile file after loading
Prototype.i ProtoDrawTile(x.i, y.i, image.i, alpha.d = 1)
  Prototype.s ProtoModifyTileFile(Filename.s, OriginalURL.s)
2017-07-04 16:50:18 +02:00
djes
afc271278a CallBackDrawTile + misc cleaning + useragent
Allows a customised tile drawing
2017-07-04 12:20:07 +02:00
djes
a98f658287 Merge branch 'thyphoon' into djes 2017-07-04 09:19:30 +02:00
djes
e87435c892 Cache file delete if size = 0 2017-07-04 08:52:01 +02:00
60647f4928 Change some SetCallBackMarker Fonctionnality
replace CallFunctionFast(PBMap\CallBackMarker,  @PBMap\Markers()\GeographicCoordinates) by               CallFunctionFast(PBMap\CallBackMarker,  @PBMap\Markers()) To use Marker identifier if necessary

move "Marker" and "GeographicCoordinates" from Module to DeclareModule. I need it's public to read easly data send to callback function.
2017-07-03 23:41:25 +02:00
djes
eb8e73a245 Updating from yves86 branch 2017-07-03 12:32:00 +02:00
djes
95d78f0590 Header 2017-06-15 17:21:52 +02:00
djes
596733f49b Header slight modifications 2017-06-15 17:19:59 +02:00
djes
13798f2517 Merge pull request #16 from djes/Yves86
(djes) implemented the new functions by Yves86
2017-06-15 17:13:23 +02:00
djes
552763d346 (djes) implemented the new functions by Yves86 2017-06-15 17:08:14 +02:00
djes
0319c8b5a4 Merge pull request #15 from djes/djes
Rewrite of cache mechanism
2017-06-15 16:42:15 +02:00
djes
4183dcd59b Create README.md 2017-06-15 15:32:33 +02:00
djes
d3e277937e Old files cleaning bug fixed 2017-06-15 15:30:19 +02:00
djes
e67076802b Latest strange image drawing bugs killed 2017-06-15 15:15:02 +02:00
djes
55bbe10378 Better thread/download management 2017-06-15 12:24:23 +02:00
djes
b11176a46f Ensures that there's no loading threads while cleaning
Should be changed, as the feeling is less good, memory consumption could get huge, and unuseful threads may continue instead of being stopped.
2017-06-14 10:58:48 +02:00
djes
7d351f4f92 Threads and cache cleaning now mutually excluded 2017-06-14 10:39:03 +02:00
djes
da8c3e9001 semaphores test 2017-06-13 21:04:59 +02:00
djes
61503c3e98 Several bugfix 2017-06-12 20:37:08 +02:00
djes
bb405afca9 Download slots bugfix 2017-06-12 12:32:51 +02:00
djes
1b903ffdc6 One more lil bugfix 2017-06-09 16:58:58 +02:00
djes
bbb66d20b6 Little bugfix 2017-06-09 16:08:39 +02:00
djes
530273a934 Added download slots and automatic download cancellation after a delay 2017-06-09 15:16:08 +02:00
djes
1de62dfb16 Caching mechanism enhanced + better downloading wip 2017-06-09 13:49:29 +02:00
djes
bbf5be2efd New cache mechanism and thread overload fixed 2017-06-08 15:02:34 +02:00
djes
c862f9099e Overload bugfix in progress
When several threads are launched and the web server doesn't respond, a form of overload appears.
2017-06-08 12:27:56 +02:00
djes
4cb1f57bbc Cache bugfix in progress
And better web loading by thread limit
2017-06-07 17:15:04 +02:00
djes
ff72bc8f07 Merge pull request #14 from djes/djes
Revert "Little tile loading bugfix"
2017-06-06 16:58:14 +02:00
djes
280e4faba6 Revert "Little tile loading bugfix"
This reverts commit 74fe157b47.
2017-06-06 16:45:45 +02:00
djes
a42058d78e Merge pull request #13 from djes/djes
Layer alpha, save GPX, geoserver support, bugfixes
2017-06-02 13:47:59 +02:00
djes
74fe157b47 Little tile loading bugfix 2017-06-02 12:53:29 +02:00
djes
246d56a008 Revert "Little tile loading bugfix"
This reverts commit aef23aa03b.
2017-06-02 12:51:38 +02:00
djes
aef23aa03b Little tile loading bugfix 2017-06-02 12:50:54 +02:00
djes
c1a650bce5 Geoserver layers support
Basic geoserver support (google maps services only by now)
2017-04-03 11:32:08 +02:00
djes
d5cd0cd6f3 Basic save GPX file function 2017-03-29 16:46:55 +02:00
djes
544750f74e Layer alpha
and some cleaning as usual
2017-03-29 12:15:33 +02:00
djes
74b2f52304 Merge pull request #12 from djes/djes
Tile file lifetime management
2017-03-24 17:36:25 +01:00
djes
7746b88731 Tile file lifetime management 2017-03-21 18:01:21 +01:00
djes
faf21269dc Merge pull request #11 from djes/djes
Important fix on tile loading.
2017-03-20 17:42:50 +01:00
djes
6e295ee658 Merge remote-tracking branch 'refs/remotes/origin/master' into djes 2017-03-20 12:39:53 +01:00
djes
ae1c031ea0 Options improvements 2017-03-20 12:38:40 +01:00
djes
6bdb4880b6 Not threadable HTTPProxy
bugfixing, plus the not threadable httpproxy() fix
2017-03-20 11:48:40 +01:00