Recent

Author Topic: TMapViewer  (Read 103322 times)

d.ioannidis

  • Full Member
  • ***
  • Posts: 221
    • Nephelae
Re: TMapViewer
« Reply #30 on: May 11, 2011, 10:34:24 pm »

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.

i'll contact you tomorrow ...

Currently its not a big projects so we can operate flexible (sorry for english google translate help me ;) )

Glad to hear that ...

[/quote]

<snip>

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.

<snip>


Phil you're right and wrong.

  Basically two things come to my mind :

   1) There is no component ( that i know ) for Lazarus / Free Pascal and switching my favorite and most productive programming language is not my first option.
   2) Google or Microsoft API license. It's not open / free and most of the frameworks / components use the API extensively. I don't want to use the API ( the cost of a license is very high for me ).

regards,

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: TMapViewer
« Reply #31 on: May 11, 2011, 10:43:48 pm »

Phil you're right and wrong.

  Basically two things come to my mind :

   1) There is no component ( that i know ) for Lazarus / Free Pascal and switching my favorite and most productive programming language is not my first option.
   2) Google or Microsoft API license. It's not open / free and most of the frameworks / components use the API extensively. I don't want to use the API ( the cost of a license is very high for me ).

Right, you wouldn't do mobile with Lazarus, but you can use Free Pascal. Normally mobile would be a "companion" app to the desktop app, which could still be written in Lazarus.

Here's more info about using Pascal with mobile if you haven't already seen this:

http://web.me.com/macpgmr/ObjP/Xcode4/ObjP_Intro.html


I've just listed a sampling of things I've recently come across for iOS. I'm sure there are many more. And for other devices too.

Thanks.

-Phil

luk2009

  • Jr. Member
  • **
  • Posts: 51
Re: TMapViewer
« Reply #32 on: February 07, 2012, 06:57:16 am »
I'm trying to install the lpk but i received this message

Quote
Can't open include file "sswin32.inc"

what can i do?

kirchfritz

  • Jr. Member
  • **
  • Posts: 53
  • WIN10 LAZ 2.2.4 FPC 3.2.2
Re: TMapViewer
« Reply #33 on: May 18, 2012, 04:45:15 pm »
Is there a code snippet how to locate the map to a given point (Long/Lat)?
The demo app always starts with showing earth.
I want to start with show my own location.

Sorry, but I dont see where to specify my coordinates as a starting point.

Can anybody help me?

BlueIcaro

  • Hero Member
  • *****
  • Posts: 792
    • Blog personal
Re: TMapViewer
« Reply #34 on: December 13, 2013, 05:07:32 pm »
Hello, Is anybody working in this control?. I started to study it, and I would like is there any plans of future?

/BlueIcaro

d.ioannidis

  • Full Member
  • ***
  • Posts: 221
    • Nephelae
Re: TMapViewer
« Reply #35 on: October 17, 2014, 09:41:51 am »
Hi,

  i made a few changes to use it on linux and also i added a DownloadEngine which uses the fphttpclient.

  Very simple stuff.

PS: This is my first attempt to use mercurial.

regards,

--
Dimitrios Chr. Ioannidis

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11352
  • FPC developer.
Re: TMapViewer
« Reply #36 on: October 17, 2014, 09:56:07 am »
Has anybody made progress with offline maps from openstreetmap instead of the webservice? Is there an installable renderer?

d.ioannidis

  • Full Member
  • ***
  • Posts: 221
    • Nephelae
Re: TMapViewer
« Reply #37 on: October 17, 2014, 10:04:45 am »
Hi,

Has anybody made progress with offline maps from openstreetmap instead of the webservice? Is there an installable renderer?

AFAIU, the tmapviewer uses tiles with a very basic cache system ( saved them in local dir for reuse ). As i need also the offline feature i plan to extend the component to store the tiles as blobs to a local db.

OTOH, i found the following http://bcdcspatial.blogspot.gr/2012/01/onlineoffline-mapping-map-tiles-and.html which is maybe a better solution, that is to run a local OSM instance.

regards,

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11352
  • FPC developer.
Re: TMapViewer
« Reply #38 on: October 17, 2014, 10:53:37 am »
The tiledrawer.com that is refered there seems to be down.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: TMapViewer
« Reply #39 on: October 17, 2014, 11:02:05 am »
that is to run a local OSM instance.
You mean PostGIS etc? Could be done I suppose, but IIRC it's a lot of work to set up...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

d.ioannidis

  • Full Member
  • ***
  • Posts: 221
    • Nephelae
Re: TMapViewer
« Reply #40 on: October 17, 2014, 11:17:21 am »
Hi,

that is to run a local OSM instance.
You mean PostGIS etc? Could be done I suppose, but IIRC it's a lot of work to set up...

well that post http://switch2osm.org/serving-tiles/manually-building-a-tile-server/ is a tutotrial that i'll try this weekend. At a first read isn't such a big task IMHO.

regards,

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: TMapViewer
« Reply #41 on: October 17, 2014, 11:26:23 am »
Depends on how you look at it - if you want to use it with a single program having to install a database server seems overkill but then again PostgreSQL is capable etc.

IIRC, I saw use of spatialite (sqlite with GIS extensions) for using offline OSM as well, but have never tried to replicate it myself.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

hugoengel2003

  • New member
  • *
  • Posts: 8
Re: TMapViewer
« Reply #42 on: November 09, 2014, 06:55:11 pm »
Hi,
I'm trying so hard to study mapviewer but it's being very tough!
Please, does somebody have a tutorial about this?
I really liked.
I want to locate points on map at giving lat and long from an address.
I need to create some maps using lines, too.
Anybody can help me?
Thanks.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: TMapViewer
« Reply #43 on: November 10, 2014, 03:03:19 pm »
Has anybody made progress with offline maps from openstreetmap instead of the webservice? Is there an installable renderer?
http://forum.lazarus.freepascal.org/index.php/topic,22103.msg133455.html#msg133455

Alternatively you can run local OpenStreetMaps server and download maps data to use it offline.
« Last Edit: November 10, 2014, 03:06:30 pm by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

ti_dic

  • New member
  • *
  • Posts: 8
Re: TMapViewer
« Reply #44 on: December 10, 2014, 03:07:54 pm »
hi,

i started playing with this component, but it's slow with UseThreads:=false. And with UseThread=true it's raise exception :(

so, i rewrited it partially. Now it use TLazIntfImage and LazRGBGraphics for multi threaded rendering and i added some function for drawing objects on map.
The "multi-threaded" component draw the map faster then the original without exception ;)
if some body is interested the sources can be found here : https://sourceforge.net/p/roadbook/code/ci/master/tree/mapviewer/

At the present moment there is no package

 

TinyPortal © 2005-2018