AnsweredAssumed Answered

Display map using java script and rest all coding in

Question asked by meenu.monu on Sep 10, 2015
Latest reply on Sep 11, 2015 by mvolz47

Dear all,


Here I am very much forced to change silverlight API to javascript API in our web application. I am very new in Java and just trying to develop the web application in javascript. I need to write all coding in except map display. For that I wrote the code below.

Here init() function calling from page load.My problem is when I am trying to add some graphics it is giving me error "map is undefined".

How can I solve that?Please note If I will call addgraphics function from input button click then it is not showing any error


1.Is it possible to add graphic from code behind using S how can I access map variable from code behind


Protected Sub Page_LoadComplete(sender As Object, e As EventArgs) Handles Me.LoadComplete

        ScriptManager.RegisterStartupScript(Me, Me.GetType(), "init", "init();", True)

    End Sub