Jump to content

Google Maps for uniGUI


lema

Recommended Posts

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.

 

post-281-0-82026300-1421544131_thumb.png

TestInfoWindow.rar

  • Upvote 1
Link to comment
Share on other sites

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.

 

attachicon.gifInfoWindow.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!
Link to comment
Share on other sites

 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.
 
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!
Link to comment
Share on other sites

  • 4 weeks later...

 

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 ?

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

  • Administrators

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.

Link to comment
Share on other sites

  • Administrators

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.

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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?

 

 

post-755-0-82386300-1426791188_thumb.png

Link to comment
Share on other sites

 

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 by lema
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...