It is currently Sat Nov 25, 2017 2:52 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 84 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
 Post subject: Re: PBMap - OpenStreetMap in a Canvas gadget
PostPosted: Tue Jul 04, 2017 4:05 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2005 2:46 pm
Posts: 1684
Location: Pas-de-Calais, France
Several new additions in the new beta, especially 3 callbacks :

  • SetCallBackMarker(*Marker.PBMap::Marker) (Typhoon's modification) : allows to receive full markers infos when moving a marker
  • SetCallBackDrawTile(x.i, y.i, image.i, alpha.d = 1) : allows to alter "on the fly" tile rendering
  • SetCallBackModifyTileFile(Filename.s, OriginalURL.s) : called after tile downloading and permits to change the file

To download and test here : https://github.com/djes/PBMap/tree/djes

_________________
Prehistoric games - Bobble Puzzle, Purebreaker 3 ~> http://djes.free.fr


Top
 Profile  
Reply with quote  
 Post subject: Re: PBMap - OSM, Here, Geoserver maps in a Canvas gadget
PostPosted: Thu Jul 20, 2017 4:25 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jan 20, 2014 6:32 pm
Posts: 141
What do u think about adding support for shapefiles or kmz?

_________________
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PBMap - OSM, Here, Geoserver maps in a Canvas gadget
PostPosted: Thu Jul 20, 2017 8:48 am 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2005 2:46 pm
Posts: 1684
Location: Pas-de-Calais, France
vwidmer wrote:
What do u think about adding support for shapefiles or kmz?

Sure, it would be nice, and is already on the TODO list. I have looked for documentation about this. SHP support would need a library like this : http://shapelib.maptools.org/
For KML/KMZ, there's already everything in PB for a basic support.

_________________
Prehistoric games - Bobble Puzzle, Purebreaker 3 ~> http://djes.free.fr


Top
 Profile  
Reply with quote  
 Post subject: Re: PBMap - OSM, Here, Geoserver maps in a Canvas gadget
PostPosted: Thu Jul 20, 2017 12:42 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jan 20, 2014 6:32 pm
Posts: 141
Did you see on the shaprelib page at the bottom couple of people have ported it to VB already. Maybe wont be too hard to port it to PB?

_________________
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PBMap - OSM, Here, Geoserver maps in a Canvas gadget
PostPosted: Thu Jul 20, 2017 1:12 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2005 2:46 pm
Posts: 1684
Location: Pas-de-Calais, France
vwidmer wrote:
Did you see on the shaprelib page at the bottom couple of people have ported it to VB already. Maybe wont be too hard to port it to PB?

No, it should be easy I think, but I haven't a C compiler here, maybe there's some compiled dll on the web...?

_________________
Prehistoric games - Bobble Puzzle, Purebreaker 3 ~> http://djes.free.fr


Top
 Profile  
Reply with quote  
 Post subject: Re: PBMap - OSM, Here, Geoserver maps in a Canvas gadget
PostPosted: Thu Jul 20, 2017 3:42 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jan 20, 2014 6:32 pm
Posts: 141
no I mean did you see this?

http://shapelib.maptools.org/dl/contrib/ShapeIO2.zip

_________________
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PBMap - OSM, Here, Geoserver maps in a Canvas gadget
PostPosted: Thu Jul 20, 2017 4:09 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2005 2:46 pm
Posts: 1684
Location: Pas-de-Calais, France
vwidmer wrote:

Well, the full port of the VB source would take a lot of time. I've compiled the shapelib dll, but I have to convert the headers so it can be used with PB. Are you interested ?

_________________
Prehistoric games - Bobble Puzzle, Purebreaker 3 ~> http://djes.free.fr


Top
 Profile  
Reply with quote  
 Post subject: Re: PBMap - OSM, Here, Geoserver maps in a Canvas gadget
PostPosted: Thu Jul 20, 2017 5:49 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jan 20, 2014 6:32 pm
Posts: 141
Yes am intersted.

Though I am on linux so maybe I would have to compile it as well to a .so.

I have see lots of weather shapefiles that I thought would be nice to overlay on the map.
Also notice a few tile sites have shapefiles with them.

See here: http://www.nhc.noaa.gov/gis/

But this site also has some KML/KMZ so if it will be dificult to support shaprefiles I think KML/MKZ files maybe a better choice for the greater group of people since it is maybe more standardized by google?

_________________
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PBMap - OSM, Here, Geoserver maps in a Canvas gadget
PostPosted: Thu Jul 20, 2017 7:58 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2005 2:46 pm
Posts: 1684
Location: Pas-de-Calais, France
shp and kml are both exchange standard, not very good ones if you want my opinion, geomatic has a lot to do before having great file formats... Anyway theses files are zipped too, so you'll have to choose the files (or the folder or http links), unzip them, and project/draw them.

_________________
Prehistoric games - Bobble Puzzle, Purebreaker 3 ~> http://djes.free.fr


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 84 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye