Commit Graph

161 Commits

Author SHA1 Message Date
djes
864d1e33f5 Optimisation
Little optimisation by Michael Vogel, see https://www.purebasic.fr/english/viewtopic.php?p=523247#p523247
2018-06-11 23:23:48 +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
552763d346 (djes) implemented the new functions by Yves86 2017-06-15 17:08:14 +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
280e4faba6 Revert "Little tile loading bugfix"
This reverts commit 74fe157b47.
2017-06-06 16:45:45 +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
7746b88731 Tile file lifetime management 2017-03-21 18:01:21 +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
djes
e55c4851ed Merge remote-tracking branch 'origin/djes' into djes
# Conflicts:
#	PBMap.pb
2017-03-20 10:25:50 +01:00
djes
f2cb4f08e9 Latest HERE and proxy fixes 2017-03-15 20:17:27 +01:00
djes
799e61ce4e Here update with options
and new layer system based on map and list
2017-03-15 19:47:45 +01:00
djes
2346bf3b33 "HERE" addons and layer modifications
Layers are now map and list based to facilitate ordering and deletion
2017-03-15 18:17:51 +01:00
djes
c1b55ef8c3 "HERE" update 2017-03-15 15:33:37 +01:00
djes
0c1287e66f Dragging release bug fixed + here wip 2017-03-15 12:47:33 +01:00
djes
8cb400f1a9 Code makeup 2017-03-03 17:23:42 +01:00
djes
825be77b4e To correct sync problem 2017-03-01 16:12:58 +01:00
djes
4deae1d60d Curl dependencies removed + some bugfix 2017-03-01 14:19:28 +01:00
djes
2bfd523459 some bugfix + full curl lib usage in comments 2017-03-01 14:06:42 +01:00