First, I red other posts regarding Google Maps. So tell me I’m stupid, not lazy 🙂
I was working with GMap.Winforms, so I’m confused about some basic tasks here (map is my map control, and I’m using C#):
Please reply with some code to display a marker “small green”, with label/tooltip “boo”.
Thank you.
Hi Adrian
Please, could you post a small running sample ? to check what is not working at your side
Regards
Ok, I discovered some parts. That code is working:
map.AddMarker(m.id, m.lat, m.lon, (Wisej.Core.DynamicObject)(Wisej.Core.WisejSerializer.Parse(“{title:\”” + m.tooltip + “\”,icon:\”http://www.googlemapsmarkers.com/v1/” + m.color + “\”}”)));
How can I use scaledSize to reduce marker size? I found that for Java, but I don’t know how to user it in C# – Wisej:
var icon = {
url: "../res/sit_marron.png", // url
scaledSize: new google.maps.Size(width, height), // size
origin: new google.maps.Point(0,0), // origin
anchor: new google.maps.Point(anchor_left, anchor_top) // anchor
};
position = new google.maps.LatLng(latitud,longitud)
marker = new google.maps.Marker({
position: position,
map: map,
icon: icon
});
Please login first to submit.