Jump to content
uniGUI Discussion Forums
lema

Google Maps for uniGUI

Recommended Posts

New version

 

2012-11-21 v1.3.0

-- Improved cross browser compatibility

 

Tested with :

Firefox 17.0

Chrome 23.0.1271.64

IE 8.0.7601

 

Please , let me know if you have any problem with your browser.

Share this post


Link to post
Share on other sites

New version

 

2012-11-22 v1.3.1

-----------------------------------------

Added ability to show multiple maps on a form / page

Fixed bugs in Directions

 

 

My apologies for any inconvenience caused with those "everyday versions".

The unigmap is part of a project I am working on and

when we have a change affecting the component , I transfer it here.

Share this post


Link to post
Share on other sites

Thank you lema

 

could you do a sample with where you enter a postcode, and it returns the street name, if that's possible

 

Thank you

Share this post


Link to post
Share on other sites

Thank you lema

 

could you do a sample with where you enter a postcode, and it returns the street name, if that's possible

 

Thank you

 

Post code to Street name?

I think this not so much accurate because there are many streets with the same post code.

The best you can get is an area having that code or an address name in center of this area.

 

So , you can try with the current demo (tab "Geocoding" , form "Google Maps").

Fill the textbox with as much detail as you have .

For example (Greece , 11524) or (11524 , GR).

You will get the coordinates of the center of area having this post code.

After that , use these coordinates in order to get a human-readable address.

Share this post


Link to post
Share on other sites

Thanks lema,

 

by the way, the download link is not showing, so unable to get the latest version :(

Share this post


Link to post
Share on other sites

Thanks lema,

 

by the way, the download link is not showing, so unable to get the latest version :(

 

fixed...

Share this post


Link to post
Share on other sites

Hi

 

I noted that when I show and move a form (in my case modal) over gmap component, sometimes the form become invisible or the application behaves weird. To avoid this situation I set gmap.enabled := False before showmodal and set enabled := True onclose form.

 

Firefox: 16.0.2

Delphi XE3

Unigui: 0.90.0 build 971

gmap 1.3.1

 

Best regards

Share this post


Link to post
Share on other sites

Hi

 

I noted that when I show and move a form (in my case modal) over gmap component, sometimes the form become invisible or the application behaves weird. To avoid this situation I set gmap.enabled := False before showmodal and set enabled := True onclose form.

 

Firefox: 16.0.2

Delphi XE3

Unigui: 0.90.0 build 971

gmap 1.3.1

 

Best regards

 

Does this strange behavior happen only with the 0.90.0.971 ?

For debug purposes , I suggest to temporarily replace the UniGMap with a simple UniHTMLFrame (showing some html).

Share this post


Link to post
Share on other sites

Does this strange behavior happen only with the 0.90.0.971 ?

For debug purposes , I suggest to temporarily replace the UniGMap with a simple UniHTMLFrame (showing some html).

 

Hi

With version 0.8.x sometimes appears an Ajax error. I have found that when something (showmessage, uniform, etc.) is show over the component weird things can occur. So, for example, to avoid problems with show message, I do the following.

 

 unigmap1.Enabled := False;
 ShowMessage('Some message',
   procedure(res: integer)
   begin
     unigmap1.Enabled := True;
   end
 );

Share this post


Link to post
Share on other sites

Hi

With version 0.8.x sometimes appears an Ajax error. I have found that when something (showmessage, uniform, etc.) is show over the component weird things can occur. So, for example, to avoid problems with show message, I do the following.

 

 unigmap1.Enabled := False;
 ShowMessage('Some message',
   procedure(res: integer)
   begin
     unigmap1.Enabled := True;
   end
 );

 

 

Does this also happen when you run the unigmap demo?

Share this post


Link to post
Share on other sites

We encountered some problems in the application.

One error Encountered in the oncreate event to write "UniGMap1.InitializeMap" uniframe .

Could you provide a uniframe the example of this component?

Share this post


Link to post
Share on other sites

We encountered some problems in the application.

One error Encountered in the oncreate event to write "UniGMap1.InitializeMap" uniframe .

Could you provide a uniframe the example of this component?

 

Yes , there is a problem when we call InitializeMap in the OnCreate event of uniFrame.

I really don't know what's going wrong ,

it seems that something is not set up at the time of frame creation.

(calling InitializeMap , uniGMap gets its parent in order to set up its event handlers)

 

AFAIK , Delphi Frames don't have an OnCreate event.

Maybe Farshad can help here.

 

 

As workaround you can use a runonce timer with 100ms interval.

procedure TaFrame.UniFrameCreate(Sender: TObject);
begin
 UniTimer1.Enabled := True;
end;

procedure TaFrame.UniTimer1Timer(Sender: TObject);
begin
 UniGMap1.InitializeMap;
end;

Share this post


Link to post
Share on other sites

Thank you!Your solution is very good!

However, the problem does not appear with Ttimer multiple initialization?

Every timer every init?

Share this post


Link to post
Share on other sites

Hi Lema,

 

I have a problem with Markerexlabel.

 

When i create about 50 piece markerexlabel, its good. But, When i create more than 100 piece markerexlabel, Unigmap not responding 4-5 second and its slowing down.

 

Then i try create marker. İt is good.

 

Can you help me?

Share this post


Link to post
Share on other sites

Hi Lema,

 

I have a problem with Markerexlabel.

 

When i create about 50 piece markerexlabel, its good. But, When i create more than 100 piece markerexlabel, Unigmap not responding 4-5 second and its slowing down.

 

Then i try create marker. İt is good.

 

Can you help me?

 

 

I made a very simple html page:

http://85.25.130.138/lema/markerwithlabel.html

 

It shows 150 markers and YES its slow.

It seems that the markerwithlabel library it is not intended for heavy usage.

 

When I 'll have some time ,

I will try to add some Marker Clusterer library

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

×