Jump to content
uniGUI Discussion Forums
Sign in to follow this  
patmap

Google Map New Component

Recommended Posts

Hi all

 

I Developed UniGoogleMap component for uniGUI.

Last Version 1.4.2 ( For Delphi XE - XE2)

Last Update 2011-12-07

important: must be install veriosn uniGUI ver 0.87.0.901 or later.

 

This component is a subclass of TUniHTMLFrame.

So i write a Objective Class for using GoogleMap API (files\GMap.js).

I used Google Map API V3.0

This Class uses a third party Class (markerwithlabel.js).

 

Attention: when you put this component on the form first set MapName property. If you want use multiple Map on your project, must be set unique name for this property.

 

After Install this component add in [uniGUI Additional] section of uniGUI components.

 

I add many future as soon as.

 

Many Thanks to Mr. Farshad for this usefull framework.

 

post-224-0-25531600-1311764116_thumb.png

 

 

Best Regards

Babak Yaghoobi

 

GoogleMap.v1.4.2.zip

  • Upvote 3

Share this post


Link to post
Share on other sites

Hi all

 

I Developed UniGoogleMap conponent for uniGUI. (Version 1.0)

 

This component is a subclass of TUniHTMLFrame.

So i write a Objective Class for using GoogleMap API (files\GMap.js).

I used Google Map API V3.0

This Class uses a third party Class (markerwithlabel.js).

 

Attention: when you put this component on the form first set MapName property. If you want use multiple Map on you project, must be set unique name for this property.

 

1) Use multiple Google Map on project.

2) Add multiple Marker and move them.

3) Use Delphi methots for create and add Map and Marker.

 

I add many future as soon as.

 

Only This!

Enjoy!

 

post-224-0-25531600-1311764116_thumb.png

 

Best Regards

Babak Yaghoobi

 

 

I have not used it yet, but whatever thanks for the contribution. I'll use it and I will comment about that later.

Share this post


Link to post
Share on other sites

Hi all

 

I Developed UniGoogleMap conponent for uniGUI. (Version 1.0) ( For Delphi XE)

 

Hi Babak,

 

Thanks for your contribution. I also added a new demo called GoogleMaps which is available in recently uploaded build 886. I'm sure it will give you more ideas to further enhance and develop your component. BTW, is map location fixed or can it be changed from Delphi?

 

Good work!

Share this post


Link to post
Share on other sites

Hi, Mr. Farshad

 

Thank you for your reply.

 

I will change source for dynamic location map.

I will put new version in one hour later.

 

Best Regards

Share this post


Link to post
Share on other sites

Hi,

 

I update post #1 with new version (1.1)

 

* Add Lock for Lock zooming and dragging

* Add UnLock for UnLock zooming and dragging

* Add Default Latitude and Longitude Map Location.

* Add Default Zoom.

 

methods:

   

  // For Update resizing map
Procedure ResizeMap; 

// For add and move Marker
Procedure AddMarker(mtype, id, lat, lng: AnsiString; Caption: AnsiString=''; html: AnsiString='no html'; head : AnsiString=''; iconname: AnsiString=''; overiconname: AnsiString=''; sizeX:AnsiString =''; sizeY: AnsiString='');

// For move on map to any location
Procedure PanTo(Lat, Lng : AnsiString) ;

// Lock zoom and dragging
	Procedure Lock ;

// UnLock zoom and dragging
	Procedure UnLock ;

 

 

Best Regards

Share this post


Link to post
Share on other sites

Hi,

 

Update to v1.2

 

* Add Save Last Zoom, Last Latitude and Longitude Map Location.

* Fixed bug with zoom in & out problem.

Share this post


Link to post
Share on other sites

Hey Patman.

I have installed the component and test samples.

But it does not show how to do it.

Help.

 

Hi,

I think you not set correct ExtRoot path in ServerModule !

 

Best Regards

Share this post


Link to post
Share on other sites

Hi,

I think you not set correct ExtRoot path in ServerModule !

 

Best Regards

 

ExtJs is C:\extjs\ext-3.3.0

I set Extroot path = c:\extjs\ext-x.y.z\

Or current Unigui install path = [ext]\

not works . Help me please.

Share this post


Link to post
Share on other sites

Hi,

 

This error when occurre that uniGUI can not find in current path \files folder one of any following files:

 

file\GMap.js
file\GoogleMap.js
file\markerwithlabel.js

 

Best Regards

  • Upvote 1

Share this post


Link to post
Share on other sites

Hi,

 

This error when occurre that uniGUI can not find in current path \files folder one of any following files:

 

file\GMap.js
file\GoogleMap.js
file\markerwithlabel.js

 

Best Regards

 

file or files ? folder .

 

Demo OneMap have files in folder = files

Share this post


Link to post
Share on other sites

Hi,

 

Update to v1.3

 

* Add Draw Polyline

* Add Draw Polygon

 

Hi patman

V1.3 i can't install component

 

F1026 File not found: 'synacode.dcu'

Share this post


Link to post
Share on other sites

Hi patman

V1.3 i can't install component

 

F1026 File not found: 'synacode.dcu'

 

Hi,

 

You right, i fix it now !

I use extra unit.

 

Best Regards

Share this post


Link to post
Share on other sites

Thank for new Version

 

I Can install V1.32 component and test for 3 demo this project

 

Before test i change path extJs to c:\extjs\ext-x.y.z\ or [ext]

3 demo is not work not show google map .

Error code TwoMap: 00000834: 22:23:54CommandGet:EUniSessionException : Invalid session or session Timeout.

 

I installed it I was wrong. Get used to it.

 

Please Help me.

post-225-0-66523100-1311835915_thumb.png

Share this post


Link to post
Share on other sites

Thank for new Version

 

I Can install V1.32 component and test for 3 demo this project

 

Before test i change path extJs to c:\extjs\ext-x.y.z\ or [ext]

3 demo is not work not show google map .

Error code TwoMap: 00000834: 22:23:54CommandGet:EUniSessionException : Invalid session or session Timeout.

 

I installed it I was wrong. Get used to it.

 

Please Help me.

 

Hi khachornsak,

 

Probably the GMap.js cached by your browser.

press CTRL+F5 or clear browser caches.

 

Use v1.3.3.

 

Best Regards

Share this post


Link to post
Share on other sites

Hi,

 

Update to v1.3.3

 

* Update for uniGUI ver 0.86.0.887

* remove GoogleMap.js from [files\] folder

* Fixed multiple Map error.

Thanks to Farshad from new release.

Thanks to khachornsak for error comment.

 

Best Regards

Share this post


Link to post
Share on other sites

Hi,

 

Update to v1.3.3

 

* Update for uniGUI ver 0.86.0.887

* remove GoogleMap.js from [files\] folder

* Fixed multiple Map error.

Thanks to Farshad from new release.

Thanks to khachornsak for error comment.

 

Best Regards

 

Hi Patman Test new Version 1.3.3

firefox & Google Chrome have log error

see picture

Thank

post-225-0-30767100-1311841431_thumb.png

post-225-0-41738000-1311841445_thumb.png

Share this post


Link to post
Share on other sites

Icon Marks not change

 

UniGoogleMap1.AddMarker('0', '1', '35.737177', '51.405587', 'Marker 1','','','car.png') ;

Icon not change to car.png (Param iconname);

Help me please .

Share this post


Link to post
Share on other sites
Sign in to follow this  

×