3 Replies Latest reply: Aug 10, 2014 8:33 PM by Honglei Zhu-Oracle RSS

    why part of a layer is hidden?

    Mohammad Abu Hmead

      Dears,

       

      I created a layer called Blocks, depending on spatial Table called Blocks,

      When I view it on the map, it should view all parts at all zoom levels, but the problem is some of blocks viewed on zoom level 8??

       

      I use map-viewer version  (11.1.1.7.3) and  (11.1.1.7.2)

        • 1. Re: why part of a layer is hidden?
          Honglei Zhu-Oracle

          Can you upload your tile layer definition, basemap definition and the html file for displaying the map?

          • 2. Re: why part of a layer is hidden?
            Mohammad Abu Hmead

            Many thanks, Honglei Zhu-Oracle

             

            Tile Layer is

             

            <map_tile_layer name="TL_BACKGROUND" image_format="PNG" http_header_expires="168.0" concurrent_fetching_threads="3">

                 <internal_map_source data_source="GIS_V1" base_map="BM_BACKGROUND" bgcolor="#ffffff"/>

                 <tile_storage root_path="/temp"/>

                 <coordinate_system srid="28191" minX="112814.024" minY="127840.897" maxX="227557.909" maxY="164366.699"/>

                 <tile_image width="256" height="256"/>

                 <zoom_levels levels="24" min_scale="1.0" max_scale="134552.0" min_tile_width="0.06773331015422177" min_tile_height="8826.452692307694">

                      <zoom_level level="0" name="level0" description="" scale="134552.0" tile_width="8826.452692307694" tile_height="8826.452692307694"/>

                      <zoom_level level="1" name="level1" description="" scale="82259.0" tile_width="5463.994523809524" tile_height="5463.994523809524"/>

                      <zoom_level level="2" name="level2" description="" scale="50290.0" tile_width="3374.8201470588237" tile_height="3374.8201470588237"/>

                      <zoom_level level="3" name="level3" description="" scale="30745.0" tile_width="2048.9979464285716" tile_height="2048.9979464285716"/>

                      <zoom_level level="4" name="level4" description="" scale="18796.0" tile_width="1260.9218131868133" tile_height="1260.9218131868133"/>

                      <zoom_level level="5" name="level5" description="" scale="11491.0" tile_width="775.2965202702703" tile_height="775.2965202702703"/>

                      <zoom_level level="6" name="level6" description="" scale="7025.0" tile_width="474.14828512396696" tile_height="474.14828512396696"/>

                      <zoom_level level="7" name="level7" description="" scale="4295.0" tile_width="290.49084810126584" tile_height="290.49084810126584"/>

                      <zoom_level level="8" name="level8" description="" scale="2625.0" tile_width="177.622113003096" tile_height="177.622113003096"/>

                      <zoom_level level="9" name="level9" description="" scale="1605.0" tile_width="108.65898200757577" tile_height="108.65898200757577"/>

                      <zoom_level level="10" name="level10" description="" scale="981.0" tile_width="66.44116097278518" tile_height="66.44116097278518"/>

                      <zoom_level level="11" name="level11" description="" scale="599.0" tile_width="40.559874513962534" tile_height="40.559874513962534"/>

                      <zoom_level level="12" name="level12" description="" scale="366.0" tile_width="24.78805033484554" tile_height="24.78805033484554"/>

                      <zoom_level level="13" name="level13" description="" scale="224.0" tile_width="15.171742033584557" tile_height="15.171742033584557"/>

                      <zoom_level level="14" name="level14" description="" scale="137.0" tile_width="9.278981481481482" tile_height="9.278981481481482"/>

                      <zoom_level level="15" name="level15" description="" scale="83.0" tile_width="5.621668953015531" tile_height="5.621668953015531"/>

                      <zoom_level level="16" name="level16" description="" scale="51.0" tile_width="3.4543723093596657" tile_height="3.4543723093596657"/>

                      <zoom_level level="17" name="level17" description="" scale="31.0" tile_width="2.0997288963712557" tile_height="2.0997288963712557"/>

                      <zoom_level level="18" name="level18" description="" scale="19.0" tile_width="1.2869290945592806" tile_height="1.2869290945592806"/>

                      <zoom_level level="19" name="level19" description="" scale="11.0" tile_width="0.7450659718840298" tile_height="0.7450659718840298"/>

                      <zoom_level level="20" name="level20" description="" scale="7.0" tile_width="0.47413261131863416" tile_height="0.47413261131863416"/>

                      <zoom_level level="21" name="level21" description="" scale="4.0" tile_width="0.2709329207535052" tile_height="0.2709329207535052"/>

                      <zoom_level level="22" name="level22" description="" scale="2.0" tile_width="0.13546662030844353" tile_height="0.13546662030844353"/>

                      <zoom_level level="23" name="level23" description="" scale="1.0" tile_width="0.06773331015422177" tile_height="0.06773331015422177"/>

               </zoom_levels>

            </map_tile_layer>

             

             

            base map is :

             

            <?xml version="1.0" standalone="yes"?>

            <map_definition>

                  <theme name="GT_BACKGROUND"/>

              </map_definition>

             

             

            Theme is :

            <?xml version="1.0" standalone="yes"?>

            <styling_rules>

                <rule>

                    <features style="C.NEW_COLOR_STYLE"> </features>

              </rule>

            </styling_rules>

             

            HTL is:

             

            <table class="mapTabel" style="direction:ltr;">

                    <tbody>

                         <tr>

                            <td>BLOCKS</td>

                            <td>                   

                                <img src="../Images/electric.png" /></td>

                            <td>

                                <input type="checkbox" id="BLOCKS_TEST" value="BLOCKS_TEST" checked="checked" onclick="setVisible(this)" /></td>

             

             

                        </tr>

                    </tbody>

                </table>

             

             

            Javascript is :

            var mapview;

            var navPan;   // Navigation Panel

            var scaleBar = null; // Scale Bar

            var md_MVOverviewMap; //Map MVOverviewMap Decoration

            var mpoint;

            var TL_Dura_Background = null;

             

             

            var centerPointsArray = new Array();

            var zoomLevels = new Array();

             

             

            var a_size = 0;

            var zoomToLevel = 0;

             

             

            function showMap() {

                setMapview(mapview);

                var baseURL = "http://ip:11188/mapviewer";

                var mapCenterLon = 170356.076403;

                var mapCenterLat = 146045.876393;

                var mapZoom = 1;

                mpoint = MVSdoGeometry.createPoint(mapCenterLon, mapCenterLat, 28191);

                mapview = new MVMapView(document.getElementById("insideContent"), baseURL);  

                TL_Dura_Background = new MVMapTileLayer("gis_v1.TL_BACKGROUND")

               mapview.addMapTileLayer(TL_Dura_Background);

                mapview.setCenter(mpoint);

                mapview.setZoomLevel(mapZoom);

                mapview.enableMultiThemeClickable(true);

             

                mapview.addMapDecoration(navPan);

             

               //add other themes

                addThemeBasedFOI();

             

                //create and add tool bar

                createToolBar();

                //TO DISPLAY THE MAP

                mapview.display();

            }

             

            function addThemeBasedFOI() {

             

             

                var GT_BLOCKS = new MVThemeBasedFOI('BLOCKS_TEST', 'gis_v1.BLOCKS_TEST');

                //GT_BLOCKS.enableAutoWholeImage(true);

                GT_BLOCKS.setVisible(true);

                GT_BLOCKS.enableImageRendering(true);

                GT_BLOCKS.setBringToTopOnMouseOver(true);

                //GT_BLOCKS.enableImageCaching(false);

                GT_BLOCKS.enableLabels(true);

                //GT_BLOCKS.enableHighlight(true, true);

                //GT_BLOCKS.attachEventListener(MVEvent.MOUSE_CLICK, foiClick);

                mapview.addThemeBasedFOI(GT_BLOCKS);

            }

            • 3. Re: why part of a layer is hidden?
              Honglei Zhu-Oracle

              Hi Mahammad,

              The docs seem find (the theme's definition is not complete, but I think you have it in the db).

              Could you check the following before we move further:

              1) Download MapBuilder from otn, if not done already. Use MapBuilder to display the theme and basemap in its preview tab.

              2) The theme and the basemap should be displayed.

              3) If the above is working fine, then do the following to get the log:

                a) modify the log level to finest in mapViewerConfig.xml found in WEB-INF/conf/ folder

                b) restart the MapViewer server

                c) access the html file. As you said, maybe some tiles are shown, and some are not.If so, get the log

                d) forward the log to honglei.x.zhu at oracle.com and I'll take a look.