AnsweredAssumed Answered

Graphic Overlay Differs between MapPack and TilePack

Question asked by geonetadmin on Sep 1, 2011
Latest reply on Sep 6, 2011 by MBranscomb-esristaff
Original User: merlich

Trying to add a graphic overlay marker and I get different results when using an mpk and tpk.  It shows correctly with the mpk, but is way off in the ocean when placed on a tpk.  The attached images show the differences.  The same arcmap project was used for creating both.  For the ESRI folks, I used the same data/mpk/tpk that I placed on our ftp for you.

After loading the map layer, here is the code I used to add the graphic overlay:

            PictureMarkerSymbol vehicle = LayoutRoot.Resources["VehicleSymbol"] as ESRI.ArcGIS.Client.Symbols.PictureMarkerSymbol;
            GraphicsLayer imageOverlaysLayer = new GraphicsLayer();
            map.Layers.Add(imageOverlaysLayer);

            Graphic currentVehicleMarker = new Graphic()
            {
                Geometry = new MapPoint(-105.09744, 39.8021),
                Symbol = _vehicle
            };
            imageOverlaysLayer.Graphics.Add(currentVehicleMarker);


Thanks,
Mike

Attachments

Outcomes