close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

list features by address ?

Thread began 11/20/2012 12:36 pm by CraigR | Last modified 11/21/2012 2:19 am by CraigR | 1401 views | 2 replies |

CraigRBeta Tester

list features by address ?

My client has several sites, each of which has different facilities, and he would like these listed in the info window.

for example...

Site 1
Address
Postcode
Facilities available
• Creche
• Car Park
• Pool

Site 2
Address
Postcode
Facilities available
• Car Park
• ATM
• Showroom


I can set up the data and recordset easily enough, but can’t seem to incorporate this via the interface.

Is this something do-able with this tool ?

Sign in to reply to this post

Jason ByrnesWebAssist

the tool doesn't allow you to bind to dynamic data in the Interface, so you would need to compile the code for the info window first using the recordset references, copy the code, then in the Pro Maps interface, past the code into the Custom Info window.

Sign in to reply to this post

CraigRBeta Tester

Thanks Jason.

It does leave me with a couple of further questions which I will outline is a separate post

If anyone else is interested, here's what I did...

My recordset is based on 2 tables, tbllocation, with the name and address details, and tbllocationfacilities, which has a foreign key locationid and a description of each facility offered.

i then edited wagmp_map_1.php around line 260, so at the start of the do...loop, I build a string to create my facilities list...

php:
<?php

  
// initialize variable to hold previous value
  
$previous '';
  
?>
<?php 
do { ?>

<?php if (($row_rslocations['LocationID']  ."") == $previous ) {
    
$facilities .= '<li>'.$row_rslocations['LocationFeatureDescription'].'</li>';
} else {
    
$facilities "";
    
$facilities .= '<li>'.$row_rslocations['LocationFeatureDescription'].'</li>';
}
// set $previous to current value for next time
        
$previous $row_rslocations['LocationID'];
    
?>



then just add the $facilities string to the infowindow

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...