This project is read-only.

Problems with Custom Icon

Apr 24, 2009 at 9:26 PM
I've got everything working ok, but can't get a custom icon to work.  Is there a way to specify the default icon for the entire map in code behind?

    Protected Sub DropDownList3_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList3.TextChanged
        Label1.Text = DropDownList3.SelectedItem.Text & " " & DropDownList2.SelectedItem.Text & " " & DropDownList1.SelectedItem.Text
        Dim county As String = Label1.Text
        GoogleMap1.Address = county
        GoogleMap1.Markers.Add(New GoogleMarker(county))
        GoogleMap1.Zoom() = 10
    End Sub

Apr 25, 2009 at 10:45 AM

You should take a look at the CustomIcons sample page in the SampleWebSite.
You can see it online at

About the default icon for the entire map, that's a good question.
I 'm thinking from a while to add Style inner properties like: MapStyle, MarkerStyle, PolygonStyle and PolylineStyle.
So, I will add those style and that will be last feature before issuing the release 4.0.

Apr 26, 2009 at 7:42 PM
Hi Velio.  I had already looked at that CustomIcons.aspx sample, but the custom icon markers are assigned inside the artem:GoogleMap1 object.  I was trying to figure out how to call the ImageURL in either code-behind or Javascript.  Did I miss something in the sample?
Apr 30, 2009 at 10:40 AM
code sample:
 Sub AddmarkerLineMean(ByVal Lat As Double, ByVal Longi As Double, ByVal etc As String)
        Dim M1 As New Artem.Web.UI.Controls.GoogleMarker
        Dim ICS As New Artem.Web.UI.Controls.GoogleSize
        ICS.Width = 32
        ICS.Height = 32
        M1.Latitude = Lat
        M1.Longitude = Longi
        ' M1.Clickable = True
        M1.Text = String.Format("{0}", etc)
        ' M1.IconSize = ICS
        M1.ImageUrl = "icons/11.png"
        M1.Draggable = True
        ' M1.Bouncy = True
        'M1.AutoPan = True
        GM1.Markers.Add(M1) 'GM! is the ID of the map control
         End Sub
Some of the properties have been REMed out you can use them too
Hope it helps