lema Posted January 18, 2015 Author Share Posted January 18, 2015 Hi Lema, How we can Google Map InfoWindow Form design and add to object properties? If We can click object on the map, we can see its properties that we make any properties like JSON objects. Other side, if we can write spatial function how we can attach with the map. For example, i want to relation beetween map object and DBase. Thank you help. Personally , I don't need InfoWindows. uniGUI itself is powerful enough to help me in creating beautiful and very complex forms. So , I catch the markerclick event and just show them. I have in my mind to add infowindows support into unigmap. I'll do it once I get some free time. Until then, you can try to create infowindows by adding JavaScript yourself. TestInfoWindow.rar 1 Quote Link to comment Share on other sites More sharing options...
mapper Posted January 21, 2015 Share Posted January 21, 2015 Thanks lema, Very good comment. i will always fallow your topics. Quote Link to comment Share on other sites More sharing options...
cristianotestai Posted January 22, 2015 Share Posted January 22, 2015 Personally , I don't need InfoWindows. uniGUI itself is powerful enough to help me in creating beautiful and very complex forms. So , I catch the markerclick event and just show them. I have in my mind to add infowindows support into unigmap. I'll do it once I get some free time. Until then, you can try to create infowindows by adding JavaScript yourself. InfoWindow.png Hi Lema, I have two questions in using the content to display in InfoWindow: 1) I am trying to assign the following code in UniMemo: <h2> uniGUI Rocks! </ h2> <HR> <p> uniGUI is a framework for Developing <B> AJAX Web Applications </b> in classical Delphi RAD WYSIWYG way. Its unique set of components allow Developing web applications at lightning speed. </ p> <p> <span class = "x-detail-action-grid" onclick = "ajaxRequest (fmAccount.dgAccount, 'detail', ['conid =' + 2]);"> view more </ span> </ p > Where occours the ajax error: missing } after property list The bold line is correct, where use elsewhere. I debug and saw that the error occurs because you have double quotes within the content that is generated for the InfoWindow the content attribute. I tried a number of ways to change the generation of the line above, but does not work. How to not conflict the double quotation marks this code? 2) Do you know how close an open InfoWindow when a second window is generated? I need only ever show one at a time. Thanks for help! Quote Link to comment Share on other sites More sharing options...
lema Posted January 22, 2015 Author Share Posted January 22, 2015 Hello Cristiano. I have slightly changed the demo. Please see at: http://forums.unigui.com/index.php?/topic/4969-google-maps-infowindow/?p=25296 1 Quote Link to comment Share on other sites More sharing options...
cristianotestai Posted January 23, 2015 Share Posted January 23, 2015 Hi Lema, Very Thanks! I'll see the demo tonight. You also saw my second question in the last post? Best Regards! Cristiano Quote Link to comment Share on other sites More sharing options...
cristianotestai Posted January 24, 2015 Share Posted January 24, 2015 Hello Lema! My second question was resolved, thanks. But, i found a small situation with InfoWindow demo. The position of InfWindow is being generated exactly by Latitude and Longitude of the mark, getting InfoWindow above the mark. For API documentation, think it should be passed to the open parameter, the marker identifier, as link below: "When you create an info window, it is not displayed automatically on the map. To make the info window visible, you need to call the open() method on the InfoWindow, passing it the Map on which to open, and optionally, the Marker with which to anchor it. If no marker is provided, the info window will open at its position property". (https://developers.google.com/maps/documentation/javascript/infowindows) In the example the link below, InfoWindow appear correctly just above the marker icon. https://developers.google.com/maps/documentation/javascript/examples/infowindow-simple I tried in various ways to indicate the marker to the open method, as: 'markerEx_' + IntToStr(MyMarker.Id); but all without sucess. You could see this case? Thanks again! Quote Link to comment Share on other sites More sharing options...
lema Posted January 26, 2015 Author Share Posted January 26, 2015 Hello Cristiano. I will add ASAP infowindow support into the unigmap component. Quote Link to comment Share on other sites More sharing options...
lema Posted January 27, 2015 Author Share Posted January 27, 2015 New version 2015-01-27 v1.4.0 -- Added infoWindow support Tested with uniGUI 0.98.10.1132 Online demo:http://79.143.178.31/lema/uniGMapDemo.dll Quote Link to comment Share on other sites More sharing options...
cristianotestai Posted January 28, 2015 Share Posted January 28, 2015 Hello Lema! Thanks for great work! Best Regards! Cristiano Quote Link to comment Share on other sites More sharing options...
NelsonFS Posted January 29, 2015 Share Posted January 29, 2015 good job Lema!!! Quote Link to comment Share on other sites More sharing options...
mmurgas Posted February 26, 2015 Share Posted February 26, 2015 Hello Friends, I want to import my waypoint directly from my GPS to map .... if anyone has done, I appreciate your wonderful help ... Greetings and Thanks MMurgas Quote Link to comment Share on other sites More sharing options...
lema Posted March 1, 2015 Author Share Posted March 1, 2015 Hello Friends, I want to import my waypoint directly from my GPS to map .... if anyone has done, I appreciate your wonderful help ... Greetings and Thanks MMurgas Hello, can you post a sample of a GPS waypoint data file ? Quote Link to comment Share on other sites More sharing options...
mmurgas Posted March 3, 2015 Share Posted March 3, 2015 Thank you Mr. Lema, I could make Importancion with XML from the next page I found knowledge .... thank you very much for your interest and help. http://neftali.clubdelphi.com/?p=1245&cpage=1#comment-20667 Thanks! Quote Link to comment Share on other sites More sharing options...
Catur Posted March 4, 2015 Share Posted March 4, 2015 mumet.... Quote Link to comment Share on other sites More sharing options...
lema Posted March 4, 2015 Author Share Posted March 4, 2015 mumet.... ?? Quote Link to comment Share on other sites More sharing options...
mapper Posted March 17, 2015 Share Posted March 17, 2015 Hi Lema, UniGmap use dynamic arrays for shapes you know. Question : Which memory use this arrays client/server? if our programs run in web, will be uncount user. What we can do for many shape sharing for stability? Thank You. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 17, 2015 Administrators Share Posted March 17, 2015 Hi Lema, UniGmap use dynamic arrays for shapes you know. Question : Which memory use this arrays client/server? if our programs run in web, will be uncount user. What we can do for many shape sharing for stability? Thank You. All Delphi components consume server side memory. Quote Link to comment Share on other sites More sharing options...
mapper Posted March 17, 2015 Share Posted March 17, 2015 In this component use very large mamory if we creat runtime many shape..etc.. Perhaps i must change source code for this component. I understand you very well. Thank you Farshad for reply. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 17, 2015 Administrators Share Posted March 17, 2015 In this component use very large mamory if we creat runtime many shape..etc.. Perhaps i must change source code for this component. I understand you very well. Thank you Farshad for reply. You might try creating this component when you need it and destroy it after result is sent to the client. Quote Link to comment Share on other sites More sharing options...
lema Posted March 18, 2015 Author Share Posted March 18, 2015 The component uses Javascript arrays to store map stuff, like markers , lines , polygons etc. e.g. The unigmap.HTML.Text contains something like the following: <script> var markersArray = []; var linesArray = []; var polygonsArray = []; var circlesArray = []; var rectanglesArray = []; .. .. .. </script> The server constructs and manipulates these arrays and sends them to client. I am not a web developer nor a Javascript expert, but I think that the client's browser is responsible for keeping these arrays into its memory. Please Farshad, correct me if I'm wrong and/or give me some hints. Hüseyin, what kind and how many of shapes do you create ? And , how do you measure the memory consumption ? Quote Link to comment Share on other sites More sharing options...
albertovesx Posted March 18, 2015 Share Posted March 18, 2015 Hi, lema. Is there any posiblity to upgrade this component to work in 64bit ? Best regards. Quote Link to comment Share on other sites More sharing options...
cristianotestai Posted March 18, 2015 Share Posted March 18, 2015 Hi, lema. Is there any posiblity to upgrade this component to work in 64bit ? Best regards. Hello! I believe not wrong, but the component for installation in the IDE should be 32bits, because the IDE is created in 32bit environment. But can be compiled normally to deploy in 64bit. Regards, Cristiano Quote Link to comment Share on other sites More sharing options...
izotope Posted March 19, 2015 Share Posted March 19, 2015 Hi, lema A long time ago I spoke with the problem that I have not shown Gmap. So, I accidentally disabled in UniServerModule property SuppressErrors. And when you try to UniGMap.InitializeMap; An error has occurred What is the problem? Quote Link to comment Share on other sites More sharing options...
lema Posted March 20, 2015 Author Share Posted March 20, 2015 (edited) Hi, lema A long time ago I spoke with the problem that I have not shown Gmap. So, I accidentally disabled in UniServerModule property SuppressErrors. And when you try to UniGMap.InitializeMap; An error has occurred What is the problem? Is that the main form of your project ? Can you post here a sample demonstrating the problem ? Edit: When do you call InitializeMap ? Edited March 20, 2015 by lema Quote Link to comment Share on other sites More sharing options...
lema Posted March 20, 2015 Author Share Posted March 20, 2015 Hi, lema. Is there any posiblity to upgrade this component to work in 64bit ? Best regards. I don't use 64bit Delphi versions , but recently I tested the component in XE7 enviroment. I didn't notice any problem with 64bit target builds. Quote Link to comment Share on other sites More sharing options...
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.