<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Load WGS84 Local Shapefile and Display in Web Mercator Application in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531418#M12016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: tbrophy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;I downloaded and am using �??Shape File Overlay for Sample Viewer�?� from the ArcGIS resource Center, submitted 3-4-2010 by �??HardWork�?�. It works great, but I need it go a step further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;�??�?�Shape File Overlay for Sample Viewer�?��?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;&lt;A class="jive-link-external-small" href="http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16846" rel="nofollow" target="_blank"&gt;http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16846&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;I asked this in a previous forum but thought I would start a new thread. . .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;(&lt;A href="http://forums.arcgis.com/threads/8268-Load-Local-Shapefile-with-Symbology-and-Attributes"&gt;http://forums.arcgis.com/threads/8268-Load-Local-Shapefile-with-Symbology-and-Attributes&lt;/A&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;My application is in Web Mercator (102100). So every time my users want to use this tool, they need to convert their shapefile from WGS 1984 Geographic (4326) into &lt;/SPAN&gt;&lt;SPAN style="font-family:Arial;"&gt;Web Mercator&lt;/SPAN&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt; (102100) in ArcMap first. Then, and only then, can the shapefile be converted into a graphic and shown in the WM application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;Can anyone show me a way to convert this programmatically?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;The conversion would always be the same (4326) -- (102100).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;********* My environment *********&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;Adapted Sample Flex Viewer: flexviewer-src-1.0.zip (Build 06.12.09) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;agslib-1.2.swc &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;flex_sdk_3.2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;Required Adobe Flash Player version 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;********* My environment *********&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;Any help would be greatly appreciated. Attached are my adjust files and one of my sample shapefiles in WGS 1984 Geographic (4326).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Nov 2010 16:57:08 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2010-11-16T16:57:08Z</dc:date>
    <item>
      <title>Load WGS84 Local Shapefile and Display in Web Mercator Application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531418#M12016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: tbrophy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;I downloaded and am using �??Shape File Overlay for Sample Viewer�?� from the ArcGIS resource Center, submitted 3-4-2010 by �??HardWork�?�. It works great, but I need it go a step further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;�??�?�Shape File Overlay for Sample Viewer�?��?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;&lt;A class="jive-link-external-small" href="http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16846" rel="nofollow" target="_blank"&gt;http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16846&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;I asked this in a previous forum but thought I would start a new thread. . .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;(&lt;A href="http://forums.arcgis.com/threads/8268-Load-Local-Shapefile-with-Symbology-and-Attributes"&gt;http://forums.arcgis.com/threads/8268-Load-Local-Shapefile-with-Symbology-and-Attributes&lt;/A&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;My application is in Web Mercator (102100). So every time my users want to use this tool, they need to convert their shapefile from WGS 1984 Geographic (4326) into &lt;/SPAN&gt;&lt;SPAN style="font-family:Arial;"&gt;Web Mercator&lt;/SPAN&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt; (102100) in ArcMap first. Then, and only then, can the shapefile be converted into a graphic and shown in the WM application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;Can anyone show me a way to convert this programmatically?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;The conversion would always be the same (4326) -- (102100).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;********* My environment *********&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;Adapted Sample Flex Viewer: flexviewer-src-1.0.zip (Build 06.12.09) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;agslib-1.2.swc &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;flex_sdk_3.2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;Required Adobe Flash Player version 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;********* My environment *********&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial;"&gt;Any help would be greatly appreciated. Attached are my adjust files and one of my sample shapefiles in WGS 1984 Geographic (4326).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 16:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531418#M12016</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-11-16T16:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load WGS84 Local Shapefile and Display in Web Mercator Application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531419#M12017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use this to do the conversion:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/com/esri/ags/utils/WebMercatorUtil.html"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/com/esri/ags/utils/WebMercatorUtil.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 18:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531419#M12017</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-11-16T18:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load WGS84 Local Shapefile and Display in Web Mercator Application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531420#M12018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: tbrophy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can use this to do the conversion:&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/com/esri/ags/utils/WebMercatorUtil.html"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/com/esri/ags/utils/WebMercatorUtil.html&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dasa (or anyone),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the conversion and got it to work half way using the attached wgs84 zipped shapefile, "&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;CHLORINE_Release_Model102100.zip&lt;/SPAN&gt;&lt;SPAN&gt;". It zooms the right location (Dallas, TX) but the graphic does not show up. I think the problem is in the "&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;loadShapefile&lt;/SPAN&gt;&lt;SPAN&gt;" function, at line:138. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;private function loadShapefile(shpByteArray:ByteArray, dbfByteArray:ByteArray):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;var index:int = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;const array:Array = [];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;const shpReader:ShpReader = new ShpReader(shpByteArray);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;const dbfHeader:DbfHeader = new DbfHeader(dbfByteArray);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;while (shpReader.hasMore())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;var shpPolygon:ShpPolygon = shpReader.readShpPolygon();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;var dbfRecord:DbfRecord = DbfTools.getRecord(dbfByteArray, dbfHeader, index++); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;var myGraphic:Graphic = new Graphic(shpPolygon, shpSymbol, dbfRecord.values);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;array.push(myGraphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;//array.push(new Graphic(shpPolygon, shpSymbol, dbfRecord.values));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;/*Code from "Live sample - Bing Maps geocoder"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;var veResult:VEGeocodeResult = results[0]; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;var myGraphic:Graphic = new Graphic(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;myGraphic.geometry = WebMercatorUtil.geographicToWebMercator(veResult.location); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;myGraphic.symbol = mySymbol; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;myGraphic.toolTip = veResult.displayName; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;myGraphic.id = "graphic"; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;myGraphicsLayer.add(myGraphic); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;myMap.extent = WebMercatorUtil.geographicToWebMercator(veResult.bestView) as Extent;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;*/ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;//var arrayGraphic:Graphic = new Graphic();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;//arrayGraphic.geometry = WebMercatorUtil.geographicToWebMercator(array.location); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;//graphicsLayer.add(arrayGraphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;graphicsLayer.graphicProvider = new ArrayCollection(array); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;map.addLayer(graphicsLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;//map.extent = shpReader.extent.expand(1.5); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;map.extent = WebMercatorUtil.geographicToWebMercator(shpReader.extent.expand(1.5)) as Extent;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;msgBox.text = "Polygon footprint has been successfully loaded.";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size:2;"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CAN ANYONE HELP ME? PLEASE?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The mxml is attached, "&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;ShpOverlay_wgs84.zip&lt;/SPAN&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//My &lt;/SPAN&gt;&lt;SPAN style="font-family:Arial;"&gt;environment is still:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;flexviewer-src-1.0.zip (Build 06.12.09) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;agslib-1.2.swc &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;flex_sdk_3.2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;Sinceraly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Arial;"&gt;Thomas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531420#M12018</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-04-20T13:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load WGS84 Local Shapefile and Display in Web Mercator Application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531421#M12019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: tbrophy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I attached the wrong shapefile.&amp;nbsp; This is the right test shapefile:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CHLORINE_Release_Model4326.zip&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is in wgs 1984 geographic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 14:39:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531421#M12019</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-04-20T14:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Load WGS84 Local Shapefile and Display in Web Mercator Application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531422#M12020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was implementing this also and was running into the same problem as you. What is missing is converting the graphic to WebMercator too. I am just working with points so this is what I did to get them show up on map&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;array.push(new Graphic(WebMercatorUtil.geographicToWebMercator(shpPoint.toPoint()), new SimpleMarkerSymbol(styleMark.text.replace(repPattern,"").toLowerCase(),sizeMark.value,cpMark.selectedColor,alphaMark.value/100), dbfRecord.values));
array.push(new Graphic(WebMercatorUtil.geographicToWebMercator(shpPoint.toPoint()), txtSym, dbfRecord.values));&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:08:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531422#M12020</guid>
      <dc:creator>MelindaFrost</dc:creator>
      <dc:date>2021-12-11T23:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Load WGS84 Local Shapefile and Display in Web Mercator Application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531423#M12021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: tbrophy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Melinda,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your response. It got me on the right track and figured it out. Here's the final code for "loadShapefile":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private function loadShapefile(shpByteArray:ByteArray, dbfByteArray:ByteArray):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var index:int = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const array:Array = [];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const shpReader:ShpReader = new ShpReader(shpByteArray);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const dbfHeader:DbfHeader = new DbfHeader(dbfByteArray);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graphicsLayer.graphicProvider = new ArrayCollection(array);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while (shpReader.hasMore())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var shpPolygon:ShpPolygon = shpReader.readShpPolygon();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var dbfRecord:DbfRecord = DbfTools.getRecord(dbfByteArray, dbfHeader, index++);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//geoToWebM Start &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var myGraphic:Graphic = new Graphic();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myGraphic.geometry = WebMercatorUtil.geographicToWebMercator(shpPolygon.toPolygon());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myGraphic.symbol = myPoly; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graphicsLayer.add(myGraphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//geoToWebM End&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//array.push(new Graphic(shpPolygon, shpSymbol, dbfRecord.values));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//graphicsLayer.graphicProvider = new ArrayCollection(array); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.addLayer(graphicsLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//map.extent = shpReader.extent.expand(1.5);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//geoToWebM Start&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.extent = WebMercatorUtil.geographicToWebMercator(shpReader.extent.expand(2.0)) as Extent;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//geoToWebM End&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;msgBox.htmlText = "Polygon footprint has been successfully loaded.";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also attached the mxml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 13:47:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531423#M12021</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-04-28T13:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load WGS84 Local Shapefile and Display in Web Mercator Application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531424#M12022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, your posts here have been very helpful for me.&amp;nbsp; I'm also trying to load shapfiles into a map with a spatial reference of 102100.&amp;nbsp; However, after my shapefile loads, I noticed that it only shows up (at the correct location) if I'm zoomed out all the way, and if I try to zoom in (beyond the 3rd ticker on the zoom bar), the shapefile just disappear. Was wondering if anyone has a clue to why this is happening. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 18:42:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/load-wgs84-local-shapefile-and-display-in-web/m-p/531424#M12022</guid>
      <dc:creator>LilyChen</dc:creator>
      <dc:date>2011-05-03T18:42:58Z</dc:date>
    </item>
  </channel>
</rss>

