djes wrote:Thank you for your test, I'll try to do what you explain tomorrow. If you have some time, could you try with cleaned image cache? There's a button to do that in the example interface. Thank you again !
You're welcome, I have to say thank you!
And I think you got the problem: after clearing the disk-cache, where has been collected around 44 MByte in >3100 image stored in >500 sub-folder, the PBMap example works without a crash.
So maybe a 'counter' (counting the files in the temp folder) would probably help, automatically warning the user to clear the cache if some limit has been reached...
I've implemented this new update into my project and it (still) works well
But I haven't seen the "clean-up of the image cache" in action yet...
Just a reminder (as I'm adding the following code each time to the MapGadget() procedure again): I would be happy, if there would be support for already created CanvasGadgets (what I have to initialize already at Dialog creation in my project) by giving their GadgetID as parameter to MapGadget(). Currently I've done it with the trick, that I'm giving the GadgetID as negative value, handled by the following code the MapGadget() function:
ElseIf Gadget < 0 ; this is an addition by Andre for adapting the PBMap module to the GeoWorldEditor (we are using an already existing CanvasGadget here! => GadgetID will be given as negative number!)
PBMap\Gadget = Abs(Gadget)
I've implemented this new update into my project and it (still) works well
But I haven't seen the "clean-up of the image cache" in action yet...
Just a reminder (as I'm adding the following code each time to the MapGadget() procedure again): I would be happy, if there would be support for already created CanvasGadgets (what I have to initialize already at Dialog creation in my project) by giving their GadgetID as parameter to MapGadget(). Currently I've done it with the trick, that I'm giving the GadgetID as negative value, handled by the following code the MapGadget() function:
ElseIf Gadget < 0 ; this is an addition by Andre for adapting the PBMap module to the GeoWorldEditor (we are using an already existing CanvasGadget here! => GadgetID will be given as negative number!)
PBMap\Gadget = Abs(Gadget)
procedure, made especially for you... Doesn't it make the job?
Sorry, I forgot about this... But thank you!
I still need to check, if it would work (haven't used the Bindxxx commands very often until now, sometimes they seems to be not flexible enough because of limited/fixed parameters etc....).
As I will be on vacations the next week, I make a short break from programming. Will be back soon!
Do I just change the OSM urls with this map server or do I have to make different functions?
I am still trying to understand how everything works.
Thanks
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA
@djes: Thanks alot I am trying your code seems to be pulling and probably would work but think the cordinates are different then what its expecting.
It getting somthing like "4042,2498" and think its expecting something more like "1251552.61125,4604309.34"
Think its using EPSG 6859 projection.
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA
vwidmer wrote:@djes: Thanks alot I am trying your code seems to be pulling and probably would work but think the cordinates are different then what its expecting.
It getting somthing like "4042,2498" and think its expecting something more like "1251552.61125,4604309.34"
@djes: Ok so I found out how to call it using the standard OSM way and its working great. Very nice.
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA