Map does not load.

2 posts, 0 answers
  1. Manish Sapkota
    Manish  Sapkota avatar
    2 posts
    Member since:
    Feb 2010

    Posted 08 Jun 2010 Link to this post

    Hi,

    We are facing a strange problem. We have an application that uses map control. We are using kml files (zipped package) to read the map information. What we have done is placed the kml file as a zipped package and asynchronously read the package in a stream using webclient. And we have read the kml file informations from the zipped package using kmlreader to return the list of frameworkelement and later on typecast to map polygon and added that to the informationlayer later on used to draw the map.

    We have deployed the application in two servers.
    1.One in our local server (has public IP). There the application runs smoothly and when map control is displayed it works perfectly.
    2. And we have deployed the same application in another server and it is in Europe. Now when we display the map control the map simply does not load.

    I tried to trace the problem point and found out that kmlreader returns the list count 0 (simply kmlreader is not working) in the case of 2nd server.Whereas the first server same line of code returns the map polygon successfully.

    What can be the cause of the problem? Probably some security issue?. I already have crossdomain policy file in place.

    Thank you.
    Manish
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 09 Jun 2010 Link to this post

    Hi Manish Sapkota,

    The KmlReader itself does not support zipped KML (KMZ) files at the moment. You can get KML from the zipped package using the following approaches:
    1. Unzip KML content on the client side using some Silverlight unzip library and then pass resulting string to the KML reader.
    2. Your server supports compressed content. In this case server will send KML to the client side as a compressed stream, then IE will unzip this information and pass it to the Silverlight as uncompressed stream.
    The first approach should work anywhere. The second one depends on the web-server (IIS) and application settings. I suppose that you are using something similar to #2. You have to ask your system administrator to compare settings for both servers and application pools.

    Best wishes,
    Andrey Murzov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
Back to Top