Jump to content

lema

uniGUI Subscriber
  • Posts

    405
  • Joined

  • Last visited

  • Days Won

    21

Posts posted by lema

  1.  

    [OFF]

     

    I'm testing a kml file, no online demo works, no console demo shows show
     
     
    preview /**/_xdc_._pfk19i && _xdc _._ pfk19i ([0, null, null, null, null, null, 2, [["cliente", "2"]]])
    resposta /**/_xdc_._pfk19i && _xdc _._ pfk19i ([0, null, null, null, null, null, 2, [["cliente", "2"]]])
     
     
    do not load, I already released the key in the google console

     

     

    Hello, maybe this can help you.

    http://forums.unigui.com/index.php?/topic/2363-google-maps-for-unigui/page-3&do=findComment&comment=11108

  2.  

    Hi Lema,
     
    after installing version 1.4.8 (with unigui Pro uni-1.0.0.1403), the route function displays an error and does not work.
    The error also comes with uniGMap Demo (I've compiled on my PC)
    If I open the DIRECTIONS example and click on GO, the application shows a script error with the "Unexpected string" message and the following text:
     
    ....
     
    If I reinstall the version 1.4.6 everything will return to work perfectly.

     
    Where am I wrong?
     
    Thank you

     

     

    Hello,

    please double check that the Google Maps Directions API in your Google API Key is enabled.

  3. Hi Lema, Yes I can, I send you a link, its a simple project

     

    https://1drv.ms/u/s!Armx7bQj2c-RiNodsEppJqJX-HktXQ

     

    also I have some problems running project as ISAP dll published to IIS, even in 32 bits I get a white screen instead of the map,

    I tested you demo project and have the same problem

    I sent you some pictures in the links below

     

    https://1drv.ms/i/s!Armx7bQj2c-RiNob_Zo6gft6UK-CBA

     

    https://1drv.ms/i/s!Armx7bQj2c-RiNoc4_Dw7spMS3ze3g

     

    Hello, did you set your own Google API Key ?

    (The corresponding constant is MyGoogleAPIKey)

     

    You can get your key at https://code.google.com/apis/console/

     

  4. Hi Lema,

     

    when I Compile my projects to 64 bits the UniGmap only shows a white screen. :unsure:

     it runs well on 32 bits but I really need to compile to 64 bits.

    I'm using Delphi Berlin update 1 and unigui version

     

    Hello,

    could you please upload a sample application demonstrating the problem ?

  5. Dear All,

     

    Can teach me how to use this component in UNIGUI, ?

     

    1. retrieve the postal code from the address.

    2. Calculate the distance between two address.

     

    Thanks in advance.

     

    Hello,

     

    1. You can try reverse geocoding.

     

    2. Use the included Haversine formula

    function TUniGMap.ComputeDistanceBetween(lat1, lng1, lat2, lng2: Double): Double;

  6. Dear Lema,

     

    Is there any function to know if a point is contained in a kml polygon?

     

    Thank's

     

    Hello.

    AFAIK, there is no any Google Maps API function to solve the Point-In-Polygon problem.

    You have to find a suitable algorithm via searching the internet.

     

    You can try:

    https://www.google.gr/search?q=Point-In-Polygon

    https://gis.stackexchange.com/search?q=Point-In-Polygon

     

    Personally, I have used the spatial functions of MySQL.

  7. Dear Lema, First of all thank you very much for your help!!! I have a KML file loaded ok, with several polygons, my question is it possible to search for a particular polygon, can it be searched for by some characteristic? Thank you so much

     

    mmurgas

     

    Hello

    - please correct me if I am mistaken -

    but I don’t have see any Google Maps API call for searching in KML Layers.

     

    Why don't you parse and traverse the KML file like any other XML?

  8. Hi 

     

    What causes this error ?

    In a existing project my gmap works, in new one

    i got this message

     

    regards Peter

     

    Hello, is the problem solved ?

     

     

     

    In general :

    When the component is being created, it adds the necessary paths in ServerModule.CustomFiles.

    So, there must be an instance of uniGmap on your FIRST form.

    I always suggest to place an invisible uniGmap on your MainForm or LoginForm.

     

    Also, please make sure that you have the required JS files in the /files directory

    markerclusterer.js

    markerwithlabel_packed.js

     

  9. Hello,

    I uploaded a new version which implements the API method fitBounds.

    The fitBounds sets the viewport to contain the given bounds.

    procedure TUniGMap.fitBounds(sw, ne: TPoints2D);
    //sw : South-West corner (Bottom-Left)
    //ne : North-East corner (Top-Right)
    
    

    There is also a new form in the demo , showing the usage of the new procedure.

     

     

     

    2017-08-13  v1.4.7
    Tested with uniGUI ver.1.0.0.1404


    Online demo:
    http://79.143.178.31/lema/uniGMapDemo.dll
     

  10. Hi Lema, great component, thank you for the work.

    Can i ask you afew question?

     

    1) How can i pan to show all the items on the map? I believe panto polyline do that but only pan to the latest point. I test on your sampel and do the same. by Example if the zoom selected put some point soff the view and apply 

     

      UniGMap1.PanToPolyline(1);

     

    It only pans to the last point of the polyline, Same for a polygon, Theres no way to show all the points in the map autoadjusting the zoom?

     

    2) AddmarkerEX do nothing here, cant find why.

     

    Best regards.

     

    Hello,

     

    1. You can use the procedure fitBounds (this has been implemented in the latest version 1.4.7).

     

    2. Check the existence of the file markerwithlabel_packed.js. It must be located into /files directory.

  11.  

    Good Night, I'm trying to make UnigMap work to get the location. I did exactly as in the DEMO example, however Firefox has the following error "ReferenceError: GeolocationAPIForm is not defined", and I can not figure out what is missing. Because in the DEMO being compiled in my machine it works perfectly, however in my APP it does not work appearing the informed message.
     
    Can anyone help me if I can?

     

     

    Do you create the GeolocationAPIForm as a Free or as Application Form?

    How do you call the GeolocationAPIForm ?

    Can you provide a working example ?

  12.  

    Hello, I created this new procedure, so that there is no waypoint limit, google limits it by 25 points.
    Only I can not remove after I have created. can you help me?? To remove all created routes. With the procedure "RemoveAllRoutes" deletes only the last route created ..
     
    procedure TUniGMap.RouteUnlimitedWaypoints(DirectionsRequest: TDirectionsRequest);
    ...

    end;

     

     

    Hello,

    can you please upload a working sample in order to look at it ?

  13. Hello! The problem only occurs only when I use bookmark with label of type TMarkerEX, when replaced by TMarker, the problem does not appear.

     

    Hello.

    Please check that you have latest markerwithlabel_packed.js in the corresponding /files directory.

    (You can find this library in the uniGMap package)

  14.  

    Hello, I created this new procedure, so that there is no waypoint limit, google limits it by 25 points.
    Only I can not remove after I have created. can you help me?? To remove all created routes. With the procedure "RemoveAllRoutes" deletes only the last route created ..
     
    procedure TUniGMap.RouteUnlimitedWaypoints(DirectionsRequest: TDirectionsRequest);
    ....
    end;

     

    Hello,

    I will look at it ASAP.

  15. Hello lema, how can I print and export to PDF the map?

     

     

    Hello,

    I tried before -without much success- to print a map with all its content.

     

    The Google Maps Javascript API doesn’t print overlays (markers, lines, etc.) and the alternative solution with the use of Static Maps API didn’t work well because the URL I was building, exceeded the max limit (I think it was 2KB).

     

    When I find some time, I will take a look at it again.

     

    In the meanwhile, I suggest to look for workarounds like html2canvas or dom-to-image.

  16. When an application has a login form the component is not showing the map. If it does not have the form of login dai it works ..

     

    When the component is being created, it adds the necessary paths in ServerModule.CustomFiles.

    So, there must be an instance of uniGmap on your FIRST form.

     

    I always suggest to place an invisible uniGmap on your MainForm or LoginForm.

     

  17. Hello, in a form paste an unigmap and a uniboton, when pressing this one must put a mark in the map but it shows attached error.

     

    Ajax Error

     

    MarkerWithLabel is not defined
     

    I need help please.

     

     

     

     

    Hello.

    Please make sure that you have the required JS files in the /files directory

    markerclusterer.js

    markerwithlabel_packed.js

×
×
  • Create New...