View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Address Marker Color From Recordset?

Thread began 8/10/2009 6:32 pm by Web Studio West | Last modified 8/14/2009 7:09 pm by Web Studio West | 2165 views | 8 replies

Eric Mittman

I have done a little testing with this and here is what I have found. You can have the markers for the locations be specified dynamically like you are trying to do. Here is how I did it. I first made sure that I had the images for all the different colors and styles of markers that I was going to use. I then had to store the image and shadow image names in the individual records in the db.

Once all the images are available and you store the image and it's shadow in the db you are ready to alter the code. In your wagmp_maps_1.php you will need to find the location where the markers are set, then copy this code into the loop just after the do statement.

Once in the loop you can add in your reference to the column that stored the image you want to use like this:

icon_0.image = 'google_javascript/images/<?php echo str_replace("'", "\'", "".$row_Recordset1['marker_file_name'] .""); ?>';

This will get you all of your points showing with the markers you specified in the db. If you are having trouble with this please post back with a URL where this can be seen and I will take a look.

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...