Jump to content


Photo

Google Map New Component


  • Please log in to reply
54 replies to this topic

#1 patmap

patmap

    Advanced Member

  • Members
  • PipPipPipPip
  • 265 posts
  • LocationTehran, Iran

Posted 27 July 2011 - 10:57 AM

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.

Attached File  uniGoogleMap.png   181.22KB   838 downloads


Best Regards
Babak Yaghoobi

Attached Files


  • 3

#2 Dionel Acosta Duarte

Dionel Acosta Duarte

    Advanced Member

  • Members
  • PipPipPipPip
  • 450 posts
  • LocationDominican Republic

Posted 27 July 2011 - 11:11 AM

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!

Attached File  uniGoogleMap.png   181.22KB   838 downloads

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.
  • 0

#3 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9813 posts

Posted 27 July 2011 - 12:12 PM

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!
  • 0

#4 patmap

patmap

    Advanced Member

  • Members
  • PipPipPipPip
  • 265 posts
  • LocationTehran, Iran

Posted 27 July 2011 - 12:19 PM

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
  • 0

#5 patmap

patmap

    Advanced Member

  • Members
  • PipPipPipPip
  • 265 posts
  • LocationTehran, Iran

Posted 27 July 2011 - 12:52 PM

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
  • 0

#6 patmap

patmap

    Advanced Member

  • Members
  • PipPipPipPip
  • 265 posts
  • LocationTehran, Iran

Posted 27 July 2011 - 02:59 PM

Hi,

Update to v1.2

* Add Save Last Zoom, Last Latitude and Longitude Map Location.
* Fixed bug with zoom in & out problem.
  • 0

#7 khachornsak

khachornsak

    Member

  • Members
  • PipPip
  • 22 posts

Posted 27 July 2011 - 04:31 PM

Hey Patman.
I have installed the component and test samples.
But it does not show how to do it.
Help.

Attached Files


  • 0

#8 patmap

patmap

    Advanced Member

  • Members
  • PipPipPipPip
  • 265 posts
  • LocationTehran, Iran

Posted 27 July 2011 - 05:34 PM

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
  • 0

#9 khachornsak

khachornsak

    Member

  • Members
  • PipPip
  • 22 posts

Posted 27 July 2011 - 06:24 PM

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.
  • 0

#10 patmap

patmap

    Advanced Member

  • Members
  • PipPipPipPip
  • 265 posts
  • LocationTehran, Iran

Posted 27 July 2011 - 06:51 PM

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
  • 0

#11 khachornsak

khachornsak

    Member

  • Members
  • PipPip
  • 22 posts

Posted 27 July 2011 - 07:03 PM

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
  • 0

#12 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9813 posts

Posted 27 July 2011 - 07:48 PM

It should be "files" folder.
  • 0

#13 patmap

patmap

    Advanced Member

  • Members
  • PipPipPipPip
  • 265 posts
  • LocationTehran, Iran

Posted 28 July 2011 - 04:44 AM

Hi,

Update to v1.3

* Add Draw Polyline
* Add Draw Polygon
  • 0

#14 khachornsak

khachornsak

    Member

  • Members
  • PipPip
  • 22 posts

Posted 28 July 2011 - 05:00 AM

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'
  • 0

#15 patmap

patmap

    Advanced Member

  • Members
  • PipPipPipPip
  • 265 posts
  • LocationTehran, Iran

Posted 28 July 2011 - 05:06 AM

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
  • 0

#16 patmap

patmap

    Advanced Member

  • Members
  • PipPipPipPip
  • 265 posts
  • LocationTehran, Iran

Posted 28 July 2011 - 05:17 AM

Hi,

Update to v1.3.2

* Fixed Bug SetCookie
* Remove Extra syncode unit.


Best Regards
  • 0

#17 khachornsak

khachornsak

    Member

  • Members
  • PipPip
  • 22 posts

Posted 28 July 2011 - 06:51 AM

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.

Attached Files


  • 0

#18 patmap

patmap

    Advanced Member

  • Members
  • PipPipPipPip
  • 265 posts
  • LocationTehran, Iran

Posted 28 July 2011 - 07:26 AM

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
  • 0

#19 patmap

patmap

    Advanced Member

  • Members
  • PipPipPipPip
  • 265 posts
  • LocationTehran, Iran

Posted 28 July 2011 - 07:29 AM

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
  • 0

#20 khachornsak

khachornsak

    Member

  • Members
  • PipPip
  • 22 posts

Posted 28 July 2011 - 08:24 AM

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

Attached Files


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users