close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


multiple marker styles one map

Thread began 3/15/2010 2:09 pm by cgschn380661 | Last modified 3/15/2010 5:43 pm by cgschn380661 | 739 views | 2 replies |


multiple marker styles one map

How (and where) can I code for certain records to have one marker style (balloon) and others to have another style (push-pin)? I am revisiting a successful map, attempting to add another type of data. I am new to php, but I can find my way around if instructed in detail.

Thank you for replies.

Sign in to reply to this post

Jimmy Wu

In the google_javascript/wagmp_map_[mapnum].php file, you would want to find the code that looks like this:

var icon_0 = new GIcon();
icon_0.image = 'plugins/google_javascript/images/traditionalflat_pacifica.png';
icon_0.shadow = 'google_javascript/images/traditionalflat_shadow.png';
icon_0.iconSize = new GSize(34,35);
icon_0.shadowSize = new GSize(34,35);
icon_0.iconAnchor = new GPoint(9,33);
icon_0.infoWindowAnchor = new GPoint(19,0);
icon_0.printImage = 'plugins/google_javascript/images/traditionalflat_pacifica.gif';
icon_0.mozPrintImage = 'plugins/google_javascript/images/traditionalflat_pacifica_mozprint.png';
icon_0.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
icon_0.transparent = 'google_javascript/images/traditionalflat_pacifica_transparent.png';

For each of the points, there will be another block of code that looks like that but with a different icon_[num]. You would want to change the icon here and make sure you have the images stored in the google_javascript/images directory.

Sign in to reply to this post


2 sets of points & markers

I'm glad it's possible. Now for the execution. Currently, the map has one pull-down menu, which calls the data points by county. I think what I'm being asked to do is create a second pull-down menu, to access other lat/long data points by watershed/region. Data from the 2 pull-down menus will display with 2 styles of markers. Data from both pull-down menus should display data on the same map.

Keeping in mind I'm brand-new at php code, how do I go about
1) setting-up markers that correspond with the items in one menu versus the other, and
2) ensuring that a user's choices from both pull-down menus are displayed simultaneously

Thank you!

In case it helps, the site is at eagleData.php but you need to register/login to view.

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





Ease of use


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