sg

Cuma, Aralık 02, 2005

Re: Place a dot on map and format text in "info window"


Here is an example of a map that has a custom icon on it:
http://www.newlifelincoln.org.uk/contact.asp

Here is how he creates his custom marker (if yours has a different
shape, your numbers will be different) and then creates a marker using
it (note that there are other parameters for custom icons if you want
it to print...):
//create Newlife logo image
var icon = new GIcon();
icon.image = "images/mapLogo.png";
icon.shadow = "images/mapShadow.png";
icon.iconSize = new GSize(144, 39);
icon.shadowSize = new GSize(167, 47);
icon.iconAnchor = new GPoint(28, 5);
icon.infoWindowAnchor = new GPoint(29, 5);
var NLmarker = new GMarker(NLpoint, icon);

-- Larry

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık