ThinkGeo.com    |     Documentation    |     Premium Support

Blank map in Telerik control

Hi,


This problem is related to that raised by my colleague Fergus Bown some weeks ago. We are still struggling with it.


One map control as follows:



 


map:Map ID="Map1" runat="server" Height="480px" Width="640px" MapUnit="DecimalDegree" visible="false">map:Map> 



        

  1.     

    When this is on a 'page.aspx' - works fine and renders my map, loads my data and overlays nicely  :-) 


        


  2.     

  3.     

    When is on a user control included on a Telerik RadPane inside a RadSplitter - works fine and renders my map :-) 


        


  4.     

  5.     

    When on a user control on the above user control- works fine and renders my map :-) 


        


  6.     

  7.     

    When the 'deepest' user control from 3 above rather being on the control directly is loaded dynamically onto a RadDock onto a RadDockZone on the above user control - all I see is the 'sea' (see attached screen shot). Not even a zoom or navigation control :-(

        The mouse cursor when on the 'map' is the caret/I-bar 


        



Help! How do I diagnose it?


thanks


Matthew


 


user control:



<


asp:Panel ID="chartpanel" runat="server" Visible="false">

 


<div class="toolbar">

 


<ol class="chartoptions">

 


ol>

 


div>

 


<div Height="480px" Width="640px" >

 


<map:Map ID="Map1" runat="server" Height="480px" Width="640px" MapUnit="DecimalDegree" visible="true">map:Map>

 


div>

 


<div id="divTooltips" class="tooltips">

 


div>

 


<div>

 


<asp:PlaceHolder ID="legend" runat="server">asp:PlaceHolder>

 


 


 


 


 


div>asp:Panel> 


<



Fergus,


I’m sorry I didn’t get your idea very clearly. I understand the top 3 but confused on the 4th one as it’s a bit complicated :-). Can you provide more description about that?
 
I didn’t see the “attached screen shot”, can you post it again.  Your codes seems misplaced, please have a look at the following link which shows how to post the codes nicely.
gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/4941/afv/topic/Default.aspx
 
Thanks,
 
Ben

Ben,


Attached is a sample that Fergus provided.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DisplayASimpleMap.aspx.cs"
    Inherits="CSSamples.Samples.DisplayASimpleMap" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="w3.org/1999/xhtml">
<head runat="server">
    <title>Display a Simple Map</title>
</head>
<body>
   
    <form id="form1" runat="server"> 
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"></telerik:RadScriptManager>               

        <telerik:RadSplitter ID="ChartSplitter" runat="server" SplitBarsSize="" Height="800px" Width="100%">
        <telerik:RadPane ID="ChartSelectionPane" runat="server" Scrolling="None" MinWidth="150"
            Width="150px">
            <!-- more stuff here -->
            <telerik:RadAjaxPanel ID="RadAjaxPanelTree" runat="server" UpdateMode="Conditional"
                Height="100%" Width="100%">
            </telerik:RadAjaxPanel>
        </telerik:RadPane>
        <telerik:RadSplitBar ID="ChartSplitBar" runat="server" />
        <telerik:RadPane ID="ChartholderPane" runat="server" Height="100%">
            <telerik:RadAjaxPanel ID="UpdatePanelReports" runat="server" UpdateMode="Conditional" Height="100%" Width="100%">
                [script removed]
                <map:Map ID="Map1" runat="server" Width="80%" Height="80%" MapUnit="DecimalDegree" ScrollBars="Both"></map:Map>
            </telerik:RadAjaxPanel>
        </telerik:RadPane>
    </telerik:RadSplitter>
    </form>
</body>
</html>
 






 


I couldn't recreate this issue. Just wonder did the user enable the javascript debugging in browser and is there any javascript errors or warnings? I guess it's some javascript registering problem similar to this post (gis.thinkgeo.com/Support/Dis...fault.aspx).  Anyway, it will be great if the user can provide a sample with both client and server side codes, not just a piece of scripts on the client side.


By the way, the above script seems not for the 4th case in the first message, 


Thanks,


Ben






The server-side code is the simple example from your VS2008 HowDoI samples. DisplayASimpleMap.




 


Matthew,


I couldn't recreate this problem. Could you have a look at the attached sample and have a look?


Thanks,


Ben


 



495-Post5321.zip (95.1 KB)