Jump to content

mapper

uniGUI Subscriber
  • Posts

    43
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by mapper

  1. Hi Lema, Farshad and friends

     

    Sorry i'm very late answer. 

     

    Lema, i am coding for GIS Professional Programs.

    You know, a GIS concept is work very much vectoral shapes. If you are eating your server memory that is very wrong technic for your many users.

     

    I found a methot that Farshad know, and i will share a sample project at my free time.

     

    Shortly, I used JSON file and my server work like WMS (Web Mapping Server).

     

    Your server create a JSON text file that contain your data with properties (id, color, opacity etc...) and client load this file.. 

     

    Google Map Api V.3 is support json file with same server..

     

    //we can add this code our html 

    map.data.loadGeoJson('files/sample.json'); //html code.

     

    google sample

     

    Thanks everybody..

  2. Like you know, The Database dont return correct RecNo properties everytime.

    Perhaps, you must scrool all data. (with Prior, next).

     

    I found a way;

     

    1- Creat a new UniDBGrid field for first column. (like NO)

     

    2- Copy-paste this code to  DrawColumnCell event :

     

    procedure ....Form.UniDBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
      DataCol: Integer; Column: TColumn; State: TGridDrawState);
     
    var
      vDbGrid: TDBGrid absolute Sender;
     
    begin
     
      // only do the next line if this event generated for
      // the first columnn (column with index 0)
      if DataCol=0 then
        vDbGrid.Canvas.TextOut(Rect.Left + 2
                               , Rect.Top + 2
                               , IntToStr(vDbGrid.DataSource.DataSet.RecNo));
     
    end;
     
     
    Good programming..

     

     

     

    post-2269-0-59126400-1425292577_thumb.jpg

    • Upvote 3
  3. Hi Lema,

     

    How we can Google Map InfoWindow Form design and add to object properties? 

     

    If We can click object on the map, we can see its properties that we make any properties like JSON objects.

     

    Other side, if we can write spatial function how we can attach with the map. For example, i want to relation beetween map object and DBase.

     

    Thank you help.

×
×
  • Create New...