Recent

Author Topic: TMapViewer  (Read 74230 times)

PAEz

  • New Member
  • *
  • Posts: 29
Re: TMapViewer
« Reply #15 on: April 05, 2011, 06:00:28 pm »
@Arbee
In Required Packages click on FCL and uncheck the Minimum Version and it should work fine.

Great package, works great and Im on dialup.
Lazarus 0.9.29  Windows XP sp3
E6400 2gig ram 7900GTX 512meg

I have a shocking memory and am a crap coder, so take everything I say with a grain of doubt

Arbee

  • Full Member
  • ***
  • Posts: 223
Re: TMapViewer
« Reply #16 on: April 05, 2011, 07:30:13 pm »
Thanks PAEz,
Works!

Nifty package indeed!  With adsl no problems with slow response.
1.0/2.6.0  XP SP3 & OS X 10.6.8

Maciej Kaczkowski

  • New Member
  • *
  • Posts: 31
    • Password Recovery Software
Re: TMapViewer
« Reply #17 on: April 05, 2011, 07:51:23 pm »
TMapViewer 0.2
changelog:
* Virtual Earth Maps (Normal, Aerial, Road, Hybrid)
* FCL version fix
* pluggable download engine (synapse with proxy, win32 as separate components)
* basic thread based downloading (still buggy)
* double buffering

not tested on linux
« Last Edit: April 05, 2011, 07:53:41 pm by Maciej Kaczkowski »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3653
  • I like bugs.
Re: TMapViewer
« Reply #18 on: April 06, 2011, 09:24:33 am »
Quote
It may be nice to add properties to the component to set the proxy.
I found solution for this. Please wait for next version.

Quote
Would you be willing to add this to Lazarus-CCR or a more formal repository ?
I have no access and I don't know how.

You are already getting feature requests, bug reports and patches. You really should put this code into a revision control system. You can create free project in SourceForge, Coogle Code, GitHub etc...
Also, with this component you should be given access to Lazarus-CCR repository if you want.

Do you know how to use revision control systems? If not, you can learn it quickly.

Regards,
Juha

Maciej Kaczkowski

  • New Member
  • *
  • Posts: 31
    • Password Recovery Software
Re: TMapViewer
« Reply #19 on: April 06, 2011, 09:03:18 pm »
Quote
Do you know how to use revision control systems? If not, you can learn it quickly.
I have only local bazaar vcs

ik

  • Jr. Member
  • **
  • Posts: 88
  • ik
    • LINESIP
Re: TMapViewer
« Reply #20 on: April 06, 2011, 10:00:14 pm »
The mapviewer20110405 version crashes on the threadpool code for me, on:

Code: Pascal  [Select]
  1. procedure TThreadPool.Terminate;
  2. var
  3.   i: Integer;
  4. begin
  5.   for i := 0 to FPool.Count - 1 do
  6.     TCustomThread(FPool.Objects[i]).Terminate;
  7. end;
  8.  

Regardless of my usage of threads. I'm using Lazarus 0.9.31 and FPC 2.5.1 on Linux 64 bit
« Last Edit: April 06, 2011, 10:02:20 pm by ik »

shiruba

  • New Member
  • *
  • Posts: 10
    • Galapagos Software
Re: TMapViewer
« Reply #21 on: April 08, 2011, 07:29:42 am »
This project has a lot of overlap with mine (Gemba). Comparison:
Pros:
kcMapViewer - Threading (Planned for Gemba)
kcMapViewer - Native GUI Component
kcMapViewer - Temporary Memory cache of tiles
kcMapViewer - Supports more map formats.  (Possible in Gemba, but TOS disallow caching).
kcMapViewer - More Object oriented.
Pros:
Gemba - GeoLocation via PlaceEngine (Mac/Windows) or Core Location (Mac Only)
Gemba - Working on support for OpenCellID location in cooperation with certain mobile 3G routers.  (ETA 1 month)
Gemba - Libraries more neatly separated
Gemba - Disk Caching of tiles
Gemba - Tested and working on Mac OS Win32.

Both projects use Synapse, and both plan on LGPL for the libraries, so I think we should combine efforts.  kcMapviewer is more of a component, while Gemba is an application which requires a lot of libraries - but there is still a reasonable amount of overlap.

Testing kcMapViewer on Mac OS I found the following trivial issues:
1. Windows unit should be commented out.
2. cthreads needs to be added a lot of places to prevent runtime error 211.
And possibly more major issue:
Tile never seem to load, usually I see a black screen.

Source code to Gemba and Sample application will be posted shortly to:
http://www.galapagossoftware.com/developer-tools/gemba-libraries
Galapagos Software - Lazarus Code

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3653
  • I like bugs.
Re: TMapViewer
« Reply #22 on: April 08, 2011, 09:31:36 am »
Both projects use Synapse, and both plan on LGPL for the libraries, so I think we should combine efforts.  kcMapviewer is more of a component, while Gemba is an application which requires a lot of libraries - but there is still a reasonable amount of overlap.

I would love to see such combined effort.

Quote
Testing kcMapViewer on Mac OS I found the following trivial issues:
1. Windows unit should be commented out.
2. cthreads needs to be added a lot of places to prevent runtime error 211.

Those changes make it also compatible with Linux.

Juha

cpalx

  • Hero Member
  • *****
  • Posts: 619
Re: TMapViewer
« Reply #23 on: April 08, 2011, 03:56:12 pm »
if you need a webpage/bugtracker page/svn i can offer my server. Even i think it is better you put it in sourcefoge or google.

Maciej Kaczkowski

  • New Member
  • *
  • Posts: 31
    • Password Recovery Software
Re: TMapViewer
« Reply #24 on: April 12, 2011, 05:42:33 pm »
if you need a webpage/bugtracker page/svn i can offer my server. Even i think it is better you put it in sourcefoge or google.

thanks, i've create repository at
http://code.google.com/p/mapviewer

Maciej Kaczkowski

  • New Member
  • *
  • Posts: 31
    • Password Recovery Software
Re: TMapViewer
« Reply #25 on: April 15, 2011, 08:09:48 pm »
another update 0.3
* new maps: Yahoo Normal, Hybrid, Satellite
* disk caching
* fixed bugs in threading

Dimitrios Chr. Ioannidis

  • Jr. Member
  • **
  • Posts: 83
    • Nephelae
Re: TMapViewer
« Reply #26 on: May 11, 2011, 10:56:24 am »
Hi,

  i have a project which will need a component like this.

  How can i work with you guys to extend it ( Overlays, Markers, Lnet as DownloadEngine for use in WinCE etc ) ?

  I've finished a project for a AVL terminal / Automotive tracker device and i've used Morfik with GoogleMaps / OpenStreet for the GUI part. I need to have a stand alone version and your component is the missing puzzle not to mention that it came the right time to change my decision from choosing .Net to choose Lazarus.

Regards,
Dimitrios Chr. Ioannidis
http://www.nephelae.eu

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: TMapViewer
« Reply #27 on: May 11, 2011, 07:22:03 pm »
Is there a mobile strategy or angle here at all? (smart phones, tablets, etc.). That's where I'm seeing most of the interest these days - both in maps and in basic GIS functionality (some geo-processing on the device, rather than everything done on the server).

Thanks.

-Phil

Maciej Kaczkowski

  • New Member
  • *
  • Posts: 31
    • Password Recovery Software
Re: TMapViewer
« Reply #28 on: May 11, 2011, 09:33:53 pm »
Quote
Is there a mobile strategy or angle here at all?
Basically I would like to create on every target where LCL works (TCustomControl control), actually I have some problems with thread pool and slow canvas.

Next step is add paths, POI. I need this component:
* for gps logger (photo tagging / track viewer) based on HOLUX M-260 or similar devices,
* to manage distributed network devices - probably visual drawing system (visio style would be great but canvas is slow and I would like not to change it)

Quote
How can i work with you guys to extend it ( Overlays, Markers, Lnet as DownloadEngine for use in WinCE etc ) ?
Whe can work on distributed vcs (hg) using code.google or svn and merge everything using patches. Currently its not a big projects so we can operate flexible (sorry for english google translate help me ;) )

-
Maciej

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: TMapViewer
« Reply #29 on: May 11, 2011, 10:14:04 pm »
Quote
Is there a mobile strategy or angle here at all?
Basically I would like to create on every target where LCL works (TCustomControl control), actually I have some problems with thread pool and slow canvas.

Next step is add paths, POI. I need this component:
* for gps logger (photo tagging / track viewer) based on HOLUX M-260 or similar devices,
* to manage distributed network devices - probably visual drawing system (visio style would be great but canvas is slow and I would like not to change it)

Well, if you are interested (now or in future) in mobile mapping and/or mobile GIS, there's a surprising number of options available for developers to pick from. For example, just looking at iOS, I see the following:

Every iOS device includes a "native" MapKit framework, which provides access to Google Earth/Maps:

http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MapKit_Framework_Reference/_index.html

(Most mobile mapping tools are tied to the API of the server that will be serving up the maps.)

If you're not into the Google Way, Microsoft has now made Bing maps available for iOS as an Objective C control:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6e01a102-49ed-409e-b384-0b67521fb612&pf=true

And ESRI, the Microsoft of the GIS world, also has an API for iOS:

http://resources.arcgis.com/content/arcgis-iphone/api

A free ArcGIS app is available from the App Store that allows access to maps from any ArcGIS server (for example, an ArcGIS server of your own). It also includes rudimentary GIS functionality (calculate distance, area).

http://blogs.esri.com/Dev/blogs/mobilecentral/archive/2011/03/02/ArcGIS-Application-for-iOS-v1.8-Available-On-App-Store.aspx

Thanks.

-Phil