close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Custom markers

Thread began 9/21/2010 5:18 pm by tbueschel415105 | Last modified 8/13/2014 3:22 pm by Jason Byrnes | 1216 views | 3 replies |

tbueschel415105

Custom markers

Does anyone know if it is possible to add custom markers/icons to the google map using pro maps?

Sign in to reply to this post

Jason ByrnesWebAssist

in the map javascript file, the code to add the icons will look like:

var icon_0 = new GIcon();
icon_0.image = '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 = 'google_javascript/images/traditionalflat_pacifica.gif';
icon_0.mozPrintImage = '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';



you can change these paths to use your own images if you like.

Sign in to reply to this post

Paul

custom markers

is there any way of using this in the wagmp_map_1.php file?

https://developers.google.com/maps/tutorials/customizing/custom-markers#customize_a_map_marker

e.g.

function wagmp_add_marker_1(point,infowindow,icon,address,isDefault,fromAddress)  {
// create the map marker
var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/';
icon: iconBase + 'schools_maps.png'
var marker = new google.maps.Marker({
position: point,
shadow: icon.shadow,
shape: icon.shape,
title: address.full
Sign in to reply to this post

Jason ByrnesWebAssist

find the coded for the iamge, for example:
image: new google.maps.MarkerImage('plugins/webassist/google_javascript/images/pushpin_pacifica.png', new google.maps.Size(40,41), new google.maps.Point(0,0), new google.maps.Point(7,38)),
shadow: new google.maps.MarkerImage('plugins/webassist/google_javascript/images/pushpin_shadow.png', new google.maps.Size(40,41), new google.maps.Point(0,0), new google.maps.Point(7,38)),

and change the path to point to your custom images.

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