patmap Posted July 27, 2011 Posted July 27, 2011 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. Best Regards Babak Yaghoobi GoogleMap.v1.4.2.zip 3 Quote
dionel1969 Posted July 27, 2011 Posted July 27, 2011 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! 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. Quote
Administrators Farshad Mohajeri Posted July 27, 2011 Administrators Posted July 27, 2011 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! Quote
patmap Posted July 27, 2011 Author Posted July 27, 2011 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 Quote
patmap Posted July 27, 2011 Author Posted July 27, 2011 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 Quote
patmap Posted July 27, 2011 Author Posted July 27, 2011 Hi, Update to v1.2 * Add Save Last Zoom, Last Latitude and Longitude Map Location. * Fixed bug with zoom in & out problem. Quote
fd6093 Posted July 27, 2011 Posted July 27, 2011 Hey Patman. I have installed the component and test samples. But it does not show how to do it. Help. Quote
patmap Posted July 27, 2011 Author Posted July 27, 2011 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 Quote
fd6093 Posted July 27, 2011 Posted July 27, 2011 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. Quote
patmap Posted July 27, 2011 Author Posted July 27, 2011 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 1 Quote
fd6093 Posted July 27, 2011 Posted July 27, 2011 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 Quote
Administrators Farshad Mohajeri Posted July 27, 2011 Administrators Posted July 27, 2011 It should be "files" folder. Quote
patmap Posted July 28, 2011 Author Posted July 28, 2011 Hi, Update to v1.3 * Add Draw Polyline * Add Draw Polygon Quote
fd6093 Posted July 28, 2011 Posted July 28, 2011 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' Quote
patmap Posted July 28, 2011 Author Posted July 28, 2011 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 Quote
patmap Posted July 28, 2011 Author Posted July 28, 2011 Hi, Update to v1.3.2 * Fixed Bug SetCookie * Remove Extra syncode unit. Best Regards Quote
fd6093 Posted July 28, 2011 Posted July 28, 2011 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. Quote
patmap Posted July 28, 2011 Author Posted July 28, 2011 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 Quote
patmap Posted July 28, 2011 Author Posted July 28, 2011 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 Quote
fd6093 Posted July 28, 2011 Posted July 28, 2011 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 Quote
patmap Posted July 28, 2011 Author Posted July 28, 2011 Hi Patman Test new Version 1.3.3 firefox & Google Chrome have log error see picture Thank Hi You must be use Last version of uniGUI ver 0.86.0.887 Best Regards Quote
fd6093 Posted July 28, 2011 Posted July 28, 2011 Hi Patman It works now. Have additional questions, I will change the Icon was also on display. Thank U. Quote
fd6093 Posted July 29, 2011 Posted July 29, 2011 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 . Quote
patmap Posted July 30, 2011 Author Posted July 30, 2011 Hi khachornsak Use with file path: UniGoogleMap1.AddMarker('0', '1', '35.737177', '51.405587', 'Marker 1','','','files/car.png') ; Best Regards Quote
fredycc Posted July 31, 2011 Posted July 31, 2011 Thanks patmap, very usefull component. Regards. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.