Hello.
I'm having a bad time adding OpenLayers Controls to the API. Whitch is the rigth way to do it?
My first try was to Inherits ThinkGeo.MapSuite.WebEdition.Map and MapTools.
< Browsable(False), JsonMember(MemberName:="controls") > _
Public Overloads ReadOnly Property MapTools() As MapTools
Get
If Me.ViewState("MapTools") Is Nothing Then
Me.ViewState("MapTools") = New MapTools()
End If
Return DirectCast(Me.ViewState("MapTools"), MapTools)
End Get
End Property
It didn't work very well, 'cause raises an exception at : Return DirectCast(Me.ViewState("MapTools"), MapTools)
Now i'm trying another approach.
< Thinkgeo:Map ID="Map1" runat="server" Height="100%" Width="100%" MapUnit="Meter" IsDefaultJavascriptLibraryDisabled="true" >< /Thinkgeo:Map >
But then how can i override the
var jsonMap1={"zoom":0, .....
var parserMap1=new mapParser(jsonMap1);
Sys.Application.add_load(keepsession);
Sys.Application.add_load(CreateAllMaps);
var Map1 = new ThinkGeo('Map1');
Since it's on the parser that you guys create the OpenLayers Controls.
Are there any extension points in the client-API?
How it's the easiest and right way to do this?