Jump to content

Google Maps for uniGUI


lema

Recommended Posts

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.

Link to comment
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.

Link to comment
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

Link to comment
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).

Link to comment
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
 );

Link to comment
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?

Link to comment
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;

Link to comment
Share on other sites

  • 2 weeks later...

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?

Link to comment
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

Link to comment
Share on other sites

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...