Moolet Moo's Online FB 1.0.2

Get Moolets
Loading Loading...
Get Moo
 
Moolets Support Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Changing Icon (1 viewing) (1) Guests
Go to bottom Avatar Required To Post Favoured: 0
TOPIC: Changing Icon
#1124
bradolive (User)
Fresh MooTooler
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Changing Icon 8 Months, 4 Weeks ago  
I thought I would have found the answer in the forum but cannot seem to. I would like to change the default icon that is shown for the marker.

The GMarkerOptions class seems to be where it is done normally, but I can't seem to figure out where to put anything in the php file. HELP?

I know the google icon library is available, so I would like to use one of those (referenced by a url) such as http://maps.google.com/mapfiles/kml/pal4/icon1.png

Thanks! - brad
 
Report to moderator   Logged Logged  
  Avatar Required To Particpate
#1128
brian_williford (Admin)
Admin
Posts: 454
graph
User Online Now Click here to see the profile of this user
Gender: Male
Re:Changing Icon 8 Months, 4 Weeks ago  
Brad,
I do not know that off the top of my head.

my chck the google maps api here

http://code.google.com/apis/maps/index.html
 
Report to moderator   Logged Logged  
 
Brian Williford
Jr. Spaceship Mechaninc
  Avatar Required To Particpate
#1130
bradolive (User)
Fresh MooTooler
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Changing Icon 8 Months, 4 Weeks ago  
Fixed it - put this in the function showaddress(address) else that outputs the marker.

echo "icon = new GIcon(G_DEFAULT_ICON, "http://mysite.com/images/icon12.png");n";
echo "icon.image = "http://mysite.com/images/icon12.png";n";
echo "icon.shadow = "http://mysite.com/images/icon12s.png";n";
echo "icon.iconSize = new GSize(36, 22);n";
echo "icon.shadowSize = new GSize(36, 22);n";
echo "icon.iconAnchor = new GPoint(0, 22);n";
echo "icon.infoWindowAnchor = new GPoint(11, 1);n";
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/02/25 23:11 By bradolive. Reason: Resolved
  Avatar Required To Particpate
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Page loading, please wait...