DMXzone Google Maps 2 Support Product Page

Answered

Info box Hyperlinks and Custom box size

Asked 10 years ago
1
has this question
10 years ago p k posted:
I want to give the values in Info Boxes a dynamic Hyperlink.
On which page can i edit the code for this, and what line?

I want to give Infobox a custom size, because dynamic values (streetnames) looks like it contains a page word break or <br/> and there is an scrollbar added to the Infobox.

Replies

Replied 10 years ago
10 years ago Teodor Kuduschiev replied:
Hello P k,
could you please provide a link to your page? Also - what datasource type are you using?
Replied 10 years ago
10 years ago p k replied:
datasource is mysql
files are on a public server and IP's need to be whitelisted

i dont know if this topic is private or public,
can i send you private message?
Replied 10 years ago
10 years ago Teodor Kuduschiev replied:
You can send the link to: support@dmxzone.com
Replied 10 years ago
10 years ago p k replied:
Sure, email coming your way.

I do see following changes when using Firefox and Chrome:
Chrome displays scrollbar and break text
Firefox displays no scrollbar and breaks text
IE displays scrollbar and breaks text
Replied 10 years ago
10 years ago p k replied:
I think the infobox doesn't contain a <br/> but the infobox has a limited size and therefor is breaking the Streetnames in half
Replied 10 years ago
10 years ago p k replied:
I still havent received an solution to why the infobox cant have a fixed size
Replied 10 years ago
10 years ago p k replied:
Regarding adding hyperlinks to Google maps infobox has been solved by myself.....

I found the code at the page where the google maps div is placed.
Navigate to the code where it begings with:

<script type="text/javascript">
  // <![CDATA[
 jQuery(document).ready(
   function()
     {
       jQuery("#map1").dmxGoogleMaps(


Now find the following code line
"html":


Add the A href to add a hyperlink. Its important to replace any " double qoutes with ' single qoutes as an example combined with a php variable:

"html": "<a href='index.php?Object=<?php echo $row_People['ID']; ?>'><?php echo $row_People['Full Name']; ?></a>"

Replied 10 years ago
10 years ago p k replied:
Please give a solution for the customized infobox height and width, thanks
Replied 10 years ago
10 years ago Teodor Kuduschiev replied:
Hi,
In your css add:

.gmap_marker {  
overflow: hidden;  
white-space: nowrap; 
}

Replied 10 years ago
10 years ago p k replied:
that worked perfectly, thanks!
Replied 1 years ago
1 years ago User  replied:
You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant shipment records

Reply to this topic