# Inconsistent Map Rendering Bug

**URL:** <https://community.thinkgeo.com/t/inconsistent-map-rendering-bug/4164>\
**Category:** MVC\
**Created:** [April 7, 2014, 4:58pm UTC](https://community.thinkgeo.com/t/inconsistent-map-rendering-bug/4164 "2014-04-07T16:58:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael12](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/ec9cab/32.png) [@Michael12](https://community.thinkgeo.com/u/Michael12)\
**Post date:** [April 7, 2014, 4:58pm UTC](https://community.thinkgeo.com/t/inconsistent-map-rendering-bug/4164/1 "2014-04-07T16:58:53Z")

</div>

I’m&nbsp;just&nbsp;learning&nbsp;how&nbsp;to&nbsp;use&nbsp;the&nbsp;Map&nbsp;Suite&nbsp;MVC&nbsp;Edition&nbsp;for&nbsp;use&nbsp;in&nbsp;a&nbsp;project&nbsp;and&nbsp;have&nbsp;encountered&nbsp;odd&nbsp;behavior.&nbsp;&nbsp;The&nbsp;code&nbsp;is&nbsp;very&nbsp;rough&nbsp;and&nbsp;dirty,&nbsp;as&nbsp;this&nbsp;is&nbsp;just&nbsp;me&nbsp;playing&nbsp;around&nbsp;with&nbsp;some&nbsp;of&nbsp;the&nbsp;features&nbsp;in&nbsp;a&nbsp;practice&nbsp;project&nbsp;and&nbsp;making&nbsp;sure&nbsp;the&nbsp;client’s&nbsp;data&nbsp;loads.&nbsp;It’s&nbsp;modeled&nbsp;after&nbsp;the&nbsp;Quick&nbsp;Start&nbsp;guide&nbsp;and&nbsp;a&nbsp;few&nbsp;others.&nbsp;&nbsp;The&nbsp;basic&nbsp;idea&nbsp;for&nbsp;this&nbsp;test&nbsp;is&nbsp;to&nbsp;have&nbsp;an&nbsp;OpenStreetMaps&nbsp;base&nbsp;layer&nbsp;and&nbsp;then&nbsp;using&nbsp;the&nbsp;layer&nbsp;selection&nbsp;tool&nbsp;to&nbsp;toggle&nbsp;some&nbsp;additional&nbsp;layers&nbsp;based&nbsp;on&nbsp;data&nbsp;from&nbsp;the&nbsp;client.&nbsp;&nbsp;I&nbsp;am&nbsp;getting&nbsp;inconsistent&nbsp;behavior&nbsp;when&nbsp;it&nbsp;comes&nbsp;to&nbsp;rendering&nbsp;the&nbsp;page.&nbsp;&nbsp;Sometimes&nbsp;the&nbsp;either&nbsp;one&nbsp;or&nbsp;both&nbsp;areas&nbsp;will&nbsp;have&nbsp;holes&nbsp;in&nbsp;them&nbsp;where&nbsp;that&nbsp;particular&nbsp;layer&nbsp;just&nbsp;doesn’t&nbsp;render.&nbsp;&nbsp;Other&nbsp;times,&nbsp;the&nbsp;whole&nbsp;layer&nbsp;fails&nbsp;to&nbsp;render&nbsp;with&nbsp;the&nbsp;message&nbsp;"points&nbsp;must&nbsp;form&nbsp;a&nbsp;closed&nbsp;linestring"&nbsp;displayed&nbsp;on&nbsp;top&nbsp;of&nbsp;the&nbsp;map&nbsp;in&nbsp;the&nbsp;top&nbsp;left&nbsp;corner&nbsp;near&nbsp;the&nbsp;zoom&nbsp;and&nbsp;pan&nbsp;tools.&nbsp;&nbsp;The&nbsp;most&nbsp;perplexing&nbsp;thing&nbsp;is&nbsp;that&nbsp;it&nbsp;seems&nbsp;to&nbsp;change&nbsp;between&nbsp;working&nbsp;seemingly&nbsp;correctly&nbsp;or&nbsp;giving&nbsp;the&nbsp;above&nbsp;behaviors&nbsp;simply&nbsp;from&nbsp;panning&nbsp;or&nbsp;zooming&nbsp;with&nbsp;no&nbsp;discernible&nbsp;consistency&nbsp;to&nbsp;help&nbsp;me&nbsp;narrow&nbsp;down&nbsp;why.&nbsp;Furthermore,&nbsp;it&nbsp;doesn’t&nbsp;appear&nbsp;to&nbsp;be&nbsp;consistent&nbsp;between&nbsp;each&nbsp;time&nbsp;I&nbsp;attempt&nbsp;to&nbsp;run&nbsp;the&nbsp;code.&nbsp;I’ve&nbsp;attached&nbsp;a&nbsp;zip&nbsp;containing&nbsp;a&nbsp;screen&nbsp;grab&nbsp;showcasing&nbsp;the&nbsp;hole.&nbsp;The&nbsp;hole&nbsp;is&nbsp;roughly&nbsp;near&nbsp;the&nbsp;center&nbsp;of&nbsp;the&nbsp;picture.&nbsp;One&nbsp;layer&nbsp;is&nbsp;set&nbsp;to&nbsp;render&nbsp;in&nbsp;a&nbsp;partially&nbsp;transparent&nbsp;red,&nbsp;while&nbsp;the&nbsp;other&nbsp;is&nbsp;set&nbsp;to&nbsp;render&nbsp;in&nbsp;a&nbsp;partially&nbsp;transparent&nbsp;blue.&nbsp;The&nbsp;blue&nbsp;area&nbsp;in&nbsp;the&nbsp;purple&nbsp;blob&nbsp;shows&nbsp;where&nbsp;the&nbsp;red&nbsp;layer&nbsp;isn’t&nbsp;rendering.&nbsp;&nbsp;Here&nbsp;is&nbsp;the&nbsp;code&nbsp;block&nbsp;I’m&nbsp;using&nbsp;to&nbsp;setup&nbsp;and&nbsp;render&nbsp;the&nbsp;map.&nbsp;&nbsp;The&nbsp;two&nbsp;shapefiles&nbsp;referenced&nbsp;are&nbsp;the&nbsp;client’s&nbsp;data&nbsp;which&nbsp;are&nbsp;in&nbsp;NAD83&nbsp;projection(EPSG:4269).

> `Html.ThinkGeo().Map(``"Map1"``, ``new`&nbsp;`System.Web.UI.WebControls.Unit(100, System.Web.UI.WebControls.UnitType.Percentage),``new`&nbsp;`System.Web.UI.WebControls.Unit(100,System.Web.UI.WebControls.UnitType.Percentage))  `  
> `    ``.MapBackground(``new`&nbsp;`BackgroundLayer(``new`&nbsp;`GeoSolidBrush(GeoColor.FromHtml(``"#E5E3DF"``))))`  
> `    ``.CurrentExtent(-8926320, 4948463, -8878542, 4909473)`  
> `    ``.MapUnit(GeographyUnit.Meter)  `  
> `    ``.MapTools(tools =>  `  
> `    ``{  `  
> `        ``tools.MouseCoordinateMapTool().Enabled(``true``);`  
> `        ``tools.OverlaySwitcherMapTool().Enabled(``true``);`  
> `    ``})  `  
> `    ``.CustomOverlays(overlays => `  
> `        ``{`  
> `            ``overlays.OpenStreetMapOverlay(``"Open Street Map"``);`  
> `            `&nbsp;  
> `            ``//Projection from NAD83 to OpenStreetMaps`  
> `            ``Proj4Projection proj4 = ``new`&nbsp;`Proj4Projection();`  
> `            ``proj4.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4269);`  
> `            ``proj4.ExternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(3857);`  
> &nbsp;  
> `            ``// Zip Layer`  
> `            ``FeatureLayer ziplayer = ``new`&nbsp;`ShapeFileFeatureLayer(Server.MapPath(@``"\App_Data\Zips.shp"``));`  
> &nbsp;  
> `            ``ziplayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle =`  
> `                ``AreaStyles.CreateSimpleAreaStyle(GeoColor.FromArgb(50, GeoColor.StandardColors.Red), GeoColor.StandardColors.Purple);`  
> &nbsp;  
> `            ``ziplayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle =`  
> `                ``TextStyles.CreateSimpleTextStyle(``"ZIP"``, ``"Arial"``, 8, DrawingFontStyles.Regular, GeoColor.StandardColors.Black);`  
> `            ``ziplayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;`  
> `           `&nbsp;  
> &nbsp;  
> `            `&nbsp;  
> `            ``proj4.Open();`  
> &nbsp;  
> `            ``ziplayer.FeatureSource.Projection = proj4;`  
> &nbsp;  
> `            ``ClientCache mapCache = ``new`&nbsp;`ClientCache(``new`&nbsp;`TimeSpan(1, 0, 0),``"mapCache"``);`  
> &nbsp;  
> `            ``overlays.LayerOverlay(``"Zip"``, ``false``, TileType.SingleTile).Layer(ziplayer).ClientCache(mapCache);`  
> `            `&nbsp;  
> `            `&nbsp;  
> &nbsp;  
> `            ``//Zone Layer`  
> `            ``ShapeFileFeatureLayer zoneLayer = ``new`&nbsp;`ShapeFileFeatureLayer(Server.MapPath(@``"\App_Data\Zones.shp"``));`  
> `            `&nbsp;  
> `            ``zoneLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle=`  
> `                 ``AreaStyles.CreateSimpleAreaStyle(GeoColor.FromArgb(50, GeoColor.StandardColors.Blue), GeoColor.StandardColors.Green);`  
> `            ``zoneLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle =`  
> `                ``TextStyles.CreateSimpleTextStyle(``"ZONE"``, ``"Arial"``, 8, DrawingFontStyles.Regular, GeoColor.StandardColors.Chartreuse);`  
> `            ``zoneLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;`  
> &nbsp;  
> `            ``proj4.Open();`  
> `            `&nbsp;  
> `            ``zoneLayer.FeatureSource.Projection = proj4;`  
> &nbsp;  
> `            ``overlays.LayerOverlay(``"Zones"``, ``false``, TileType.SingleTile).Layer(zoneLayer).ClientCache(mapCache);                        `  
> `  `&nbsp;  
> `        ``})`  
> `    ``.Render(); `

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [April 9, 2014, 2:43am UTC](https://community.thinkgeo.com/t/inconsistent-map-rendering-bug/4164/2 "2014-04-09T02:43:27Z")

</div>

Hi&nbsp;Michael,  
  
  
  
Thanks&nbsp;for&nbsp;paying&nbsp;attention&nbsp;to&nbsp;Map&nbsp;Suite&nbsp;products.&nbsp;Seems&nbsp;like&nbsp;there&nbsp;are&nbsp;something&nbsp;wrong&nbsp;with&nbsp;the&nbsp;data&nbsp;used&nbsp;for&nbsp;the&nbsp;toggle,&nbsp;but&nbsp;not&nbsp;very&nbsp;sure,&nbsp;it’s&nbsp;better&nbsp;you&nbsp;can&nbsp;call&nbsp;the&nbsp;MakeValid&nbsp;method&nbsp;of&nbsp;Feature&nbsp;to&nbsp;correct&nbsp;these&nbsp;geometries&nbsp;at&nbsp;first.&nbsp;Also&nbsp;I&nbsp;think&nbsp;you&nbsp;can&nbsp;try&nbsp;downloading&nbsp;our&nbsp;straightforward&nbsp;tool&nbsp;[GisEditor](http://thinkgeo.com/gis-editor/)&nbsp;to&nbsp;load&nbsp;these&nbsp;data&nbsp;and&nbsp;switch&nbsp;to&nbsp;“Identify&nbsp;Feature”&nbsp;tab&nbsp;to&nbsp;see&nbsp;how&nbsp;these&nbsp;holes&nbsp;are,&nbsp;what’s&nbsp;the&nbsp;type&nbsp;of&nbsp;these&nbsp;features,&nbsp;etc.&nbsp;  
  
  
  
Also&nbsp;is&nbsp;it&nbsp;possible&nbsp;to&nbsp;send&nbsp;some&nbsp;demo&nbsp;data&nbsp;to&nbsp;us,&nbsp;so&nbsp;that&nbsp;we&nbsp;can&nbsp;do&nbsp;some&nbsp;test?&nbsp;because&nbsp;it’s&nbsp;hard&nbsp;for&nbsp;us&nbsp;to&nbsp;determine&nbsp;the&nbsp;problem&nbsp;just&nbsp;based&nbsp;on&nbsp;an&nbsp;image,&nbsp;you&nbsp;can&nbsp;attached&nbsp;in&nbsp;the&nbsp;thread&nbsp;or&nbsp;send&nbsp;it&nbsp;to&nbsp;us&nbsp;via&nbsp;email&nbsp;[forumsupport@thinkgeo.com](mailto:forumsupport@thinkgeo.com).  
  
  
  
Looking&nbsp;forward&nbsp;to&nbsp;your&nbsp;further&nbsp;information.  
  
Regards,  
  
Johnny

---

<div class="post-metadata">

**Author:** ![Michael12](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/ec9cab/32.png) [@Michael12](https://community.thinkgeo.com/u/Michael12)\
**Post date:** [April 9, 2014, 10:33am UTC](https://community.thinkgeo.com/t/inconsistent-map-rendering-bug/4164/3 "2014-04-09T10:33:04Z")

</div>

I&nbsp;will&nbsp;need&nbsp;to&nbsp;check&nbsp;with&nbsp;the&nbsp;client&nbsp;before&nbsp;releasing&nbsp;the&nbsp;data.&nbsp;&nbsp;One&nbsp;set&nbsp;of&nbsp;data&nbsp;is&nbsp;I&nbsp;believe&nbsp;simply&nbsp;from&nbsp;the&nbsp;U.S.&nbsp;Census,&nbsp;but&nbsp;the&nbsp;other&nbsp;may&nbsp;be&nbsp;their&nbsp;own&nbsp;private&nbsp;data.&nbsp;&nbsp;Everything&nbsp;appears&nbsp;alright&nbsp;upon&nbsp;examination&nbsp;in&nbsp;GisEditor.&nbsp;I&nbsp;have&nbsp;also&nbsp;switched&nbsp;over&nbsp;to&nbsp;doing&nbsp;all&nbsp;setup&nbsp;in&nbsp;the&nbsp;controller&nbsp;since&nbsp;that&nbsp;more&nbsp;closely&nbsp;resembles&nbsp;how&nbsp;the&nbsp;project&nbsp;will&nbsp;be&nbsp;setup&nbsp;and&nbsp;is&nbsp;how&nbsp;I&nbsp;prefer&nbsp;to&nbsp;code.&nbsp;&nbsp;I’ll&nbsp;post&nbsp;the&nbsp;updated&nbsp;code&nbsp;shortly,&nbsp;through&nbsp;the&nbsp;problem&nbsp;still&nbsp;exists&nbsp;as&nbsp;the&nbsp;its&nbsp;basically&nbsp;just&nbsp;transferring&nbsp;the&nbsp;code&nbsp;to&nbsp;the&nbsp;controller.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Also,&nbsp;as&nbsp;an&nbsp;experiment&nbsp;I&nbsp;tried&nbsp;something&nbsp;slightly&nbsp;different.&nbsp;&nbsp;Instead&nbsp;of&nbsp;creating&nbsp;two&nbsp;LayerOverlays&nbsp;(one&nbsp;for&nbsp;each&nbsp;layer&nbsp;containing&nbsp;information&nbsp;from&nbsp;a&nbsp;shapefile)&nbsp;and&nbsp;adding&nbsp;them&nbsp;to&nbsp;the&nbsp;overlays&nbsp;collection,&nbsp;I&nbsp;created&nbsp;a&nbsp;single&nbsp;LayerOverlay&nbsp;and&nbsp;added&nbsp;both&nbsp;layers&nbsp;to&nbsp;it.&nbsp;When&nbsp;this&nbsp;is&nbsp;done&nbsp;the&nbsp;problem&nbsp;doesn’t&nbsp;appear&nbsp;to&nbsp;manifest.&nbsp;&nbsp;Can&nbsp;there&nbsp;only&nbsp;be&nbsp;one&nbsp;LayerOverlay&nbsp;per&nbsp;a&nbsp;map?&nbsp;If&nbsp;so&nbsp;am&nbsp;I&nbsp;misunderstanding&nbsp;the&nbsp;purpose&nbsp;of&nbsp;the&nbsp;LayerOverlay?

---

<div class="post-metadata">

**Author:** ![Michael12](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/ec9cab/32.png) [@Michael12](https://community.thinkgeo.com/u/Michael12)\
**Post date:** [April 9, 2014, 11:00am UTC](https://community.thinkgeo.com/t/inconsistent-map-rendering-bug/4164/4 "2014-04-09T11:00:29Z")

</div>

Here’s&nbsp;the&nbsp;updated&nbsp;code:  
  
  
  
The&nbsp;Controller:

> `using`&nbsp;`System;`  
> `using`&nbsp;`System.Collections.Generic;`  
> `using`&nbsp;`System.Linq;`  
> `using`&nbsp;`System.Web;`  
> `using`&nbsp;`System.Web.Mvc;`  
> `using`&nbsp;`ThinkGeo.MapSuite.Core;`  
> `using`&nbsp;`ThinkGeo.MapSuite.MvcEdition;`  
> &nbsp;  
> `namespace`&nbsp;`Test2.Controllers`  
> `{`  
> `    ``public`&nbsp;`class`&nbsp;`HomeController : Controller`  
> `    ``{`  
> `        ``//`  
> `        ``// GET: /Home/`  
> &nbsp;  
> `        ``public`&nbsp;`ActionResult Index()`  
> `        ``{      `  
> `            ``System.Web.UI.WebControls.Unit mapHeight = ``new`&nbsp;`System.Web.UI.WebControls.Unit(100, System.Web.UI.WebControls.UnitType.Percentage);`  
> `            ``System.Web.UI.WebControls.Unit mapWidth = ``new`&nbsp;`System.Web.UI.WebControls.Unit(100, System.Web.UI.WebControls.UnitType.Percentage);`  
> &nbsp;  
> `            ``//Setup Map`  
> `            ``Map map = ``new`&nbsp;`Map(``"Map1"``,mapWidth,mapHeight);           `  
> `            ``map.CurrentExtent = ``new`&nbsp;`RectangleShape(-8926320, 4948463, -8878542, 4909473);`  
> `            ``map.MapUnit = GeographyUnit.Meter;`  
> `            ``map.MapBackground = ``new`&nbsp;`BackgroundLayer(``new`&nbsp;`GeoSolidBrush(GeoColor.StandardColors.Beige));`  
> `            ``map.MapTools.OverlaySwitcher.Enabled = ``true``;`  
> &nbsp;  
> `            ``//Setup Overlays`  
> &nbsp;  
> `            ``//OSM`  
> `            ``map.CustomOverlays.Add(``new`&nbsp;`OpenStreetMapOverlay(``"OSM"``));`  
> &nbsp;  
> `            ``//Projection from NAD83 to OpenStreetMaps`  
> `            ``Proj4Projection proj4 = ``new`&nbsp;`Proj4Projection();`  
> `            ``proj4.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4269);`  
> `            ``proj4.ExternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(3857);`  
> &nbsp;  
> `            ``//Cache client side`  
> `            ``ClientCache mapCache = ``new`&nbsp;`ClientCache(``new`&nbsp;`TimeSpan(1, 0, 0), ``"mapCache"``);`  
> &nbsp;  
> `            ``//Setup Zip Layer`  
> `            ``LayerOverlay zipLayerOverlay = ``new`&nbsp;`LayerOverlay(``"Zip Codes"``, ``false``, TileType.SingleTile);`  
> &nbsp;  
> `            ``ShapeFileFeatureLayer zipLayer = ``new`&nbsp;`ShapeFileFeatureLayer(Server.MapPath(@``"\App_Data\Zips.shp"``));`  
> `            ``zipLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle =`  
> `                ``AreaStyles.CreateSimpleAreaStyle(``new`&nbsp;`GeoColor(50, GeoColor.StandardColors.Red),GeoColor.StandardColors.DarkRed);`  
> `            ``zipLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = `  
> `                ``TextStyles.CreateSimpleTextStyle(``"ZIP"``, ``"Arial"``, 10, DrawingFontStyles.Regular, GeoColor.StandardColors.DarkRed);`  
> `            ``zipLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;`  
> `            ``proj4.Open();`  
> `            ``zipLayer.FeatureSource.Projection = proj4;`  
> `            ``proj4.Close();`  
> `            ``zipLayerOverlay.Layers.Add(zipLayer);`  
> `            ``zipLayerOverlay.ClientCache = mapCache;`  
> `            `&nbsp;  
> `            ``map.CustomOverlays.Add(zipLayerOverlay);`  
> &nbsp;  
> `            ``//Setup Zone Layer`  
> `            ``LayerOverlay zoneLayerOverlay = ``new`&nbsp;`LayerOverlay(``"Zones"``, ``false``, TileType.SingleTile);`  
> &nbsp;  
> `            ``ShapeFileFeatureLayer zoneLayer = ``new`&nbsp;`ShapeFileFeatureLayer(Server.MapPath(@``"\App_Data\Zones.shp"``));`  
> `            ``zoneLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle =`  
> `                ``AreaStyles.CreateSimpleAreaStyle(``new`&nbsp;`GeoColor(50, GeoColor.StandardColors.Blue),GeoColor.StandardColors.DarkBlue);`  
> `            ``zoneLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = `  
> `                ``TextStyles.CreateSimpleTextStyle(``"ZONE_NAME"``, ``"Arial"``, 10, DrawingFontStyles.Regular, GeoColor.StandardColors.DarkBlue);`  
> `            ``zoneLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;`  
> `            ``proj4.Open();`  
> `            ``zoneLayer.FeatureSource.Projection = proj4;`  
> `            ``proj4.Close();`  
> `            ``zoneLayerOverlay.Layers.Add(zoneLayer);`  
> `            ``zoneLayerOverlay.ClientCache = mapCache;`  
> `            ``map.CustomOverlays.Add(zoneLayerOverlay);`  
> `     `&nbsp;  
> `            ``return`&nbsp;`View(map);`  
> `        ``}`  
> &nbsp;  
> `    ``}`  
> `}`

  
The&nbsp;View:  
  

> `@``using`&nbsp;`ThinkGeo.MapSuite.Core`  
> `@``using`&nbsp;`ThinkGeo.MapSuite.MvcEdition`  
> `@model ThinkGeo.MapSuite.MvcEdition.Map`  
> &nbsp;  
> `@{`  
> `    ``ViewBag.Title = ``"Index"``;`  
> `}`  
> &nbsp;  
> `<h2>Index</h2>`  
> `@{`  
> `    ``Html.ThinkGeo().Map(Model).Render();`  
> `    `&nbsp;  
> `}`

  

> ``

---

<div class="post-metadata">

**Author:** ![Michael12](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/ec9cab/32.png) [@Michael12](https://community.thinkgeo.com/u/Michael12)\
**Post date:** [April 9, 2014, 12:12pm UTC](https://community.thinkgeo.com/t/inconsistent-map-rendering-bug/4164/5 "2014-04-09T12:12:39Z")

</div>

The&nbsp;client&nbsp;has&nbsp;given&nbsp;permission&nbsp;to&nbsp;release&nbsp;the&nbsp;data.&nbsp;&nbsp;Here&nbsp;are&nbsp;the&nbsp;shapefiles,&nbsp;as&nbsp;well&nbsp;as&nbsp;the&nbsp;ancillary&nbsp;files,&nbsp;for&nbsp;the&nbsp;data.

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [April 10, 2014, 4:34am UTC](https://community.thinkgeo.com/t/inconsistent-map-rendering-bug/4164/6 "2014-04-10T04:34:04Z")

</div>

Hi&nbsp;Michael,

I&nbsp;think&nbsp;that&nbsp;it&nbsp;is&nbsp;a&nbsp;bug&nbsp;in&nbsp;our&nbsp;projection&nbsp;system&nbsp;when&nbsp;all&nbsp;the&nbsp;layers&nbsp;share&nbsp;only&nbsp;one&nbsp;instance&nbsp;of&nbsp;projection&nbsp;on&nbsp;“SingleTile”&nbsp;mode.&nbsp;I&nbsp;tried&nbsp;resolving&nbsp;it,&nbsp;but&nbsp;seems&nbsp;like&nbsp;it's&nbsp;a&nbsp;bit&nbsp;complicated,&nbsp;I&nbsp;have&nbsp;entered&nbsp;this&nbsp;issue&nbsp;to&nbsp;our&nbsp;internal&nbsp;issue&nbsp;tracking&nbsp;system,&nbsp;and&nbsp;hope&nbsp;it&nbsp;can&nbsp;be&nbsp;fixed&nbsp;soon.&nbsp;Now,&nbsp;I&nbsp;guess&nbsp;you&nbsp;can&nbsp;try&nbsp;the&nbsp;following&nbsp;two&nbsp;options:

  
&nbsp;&nbsp;&nbsp;&nbsp;- 1.&nbsp;Apply&nbsp;different&nbsp;instance&nbsp;of&nbsp;Projection&nbsp;to&nbsp;each&nbsp;layer,&nbsp;code&nbsp;should&nbsp;be&nbsp;as&nbsp;following:
  
&nbsp;&nbsp;&nbsp;&nbsp;-   
&nbsp;&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Proj4Projection&nbsp;proj4&nbsp;=&nbsp;new&nbsp;Proj4Projection();  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proj4.InternalProjectionParametersString&nbsp;=&nbsp;Proj4Projection.GetEpsgParametersString(4269);  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proj4.ExternalProjectionParametersString&nbsp;=&nbsp;Proj4Projection.GetEpsgParametersString(3857);  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Proj4Projection&nbsp;proj41&nbsp;=&nbsp;new&nbsp;Proj4Projection();  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proj41.InternalProjectionParametersString&nbsp;=&nbsp;Proj4Projection.GetEpsgParametersString(4269);  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

proj41.ExternalProjectionParametersString&nbsp;=&nbsp;Proj4Projection.GetEpsgParametersString(3857);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

zipLayer.FeatureSource.Projection  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;proj4;  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;zoneLayer.FeatureSource.Projection  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;proj41;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;

  
&nbsp;&nbsp;&nbsp;&nbsp;- 2.&nbsp;Setting&nbsp;“TileType”&nbsp;property&nbsp;in&nbsp;“Overlay”&nbsp;to&nbsp;"MultipleTile".
  

  
  
`zipLayerOverlay.TileType = TileType.MultipleTile;
`  

Thanks,  
  
Johnny
