Bernhard Posted December 13, 2007 Report Share Posted December 13, 2007 Hello. I am a beginner on Chart Fx Maps. I have an Costum SVG. How can i use this SVG and Data.( see Attachement)? I dont see the Svg on the chart. What have i todo? protected void Page_Load(object sender, EventArgs e) { //Make plot rectangle bigger inside chart area Chart1.PlotAreaMargin.Bottom = 1; Chart1.PlotAreaMargin.Top = 1; Chart1.PlotAreaMargin.Right = 1; Chart1.PlotAreaMargin.Left = -1; //Configure Map LabelLinks, Svg and Data string textData = Resources.Resource.TextFile; TextProvider cfxText = new TextProvider(new System.IO.StringReader(textData)); Chart1.DataSourceSettings.DataSource = cfxText; Map1.MapSource = @"~/App_Data/ooe.svg"; Chart1.LegendBox.Visible = true; Chart1.AllSeries.PointLabels.Visible = true; Thanks Bernhard Link to comment Share on other sites More sharing options...
maximop Posted December 13, 2007 Report Share Posted December 13, 2007 You need the MapSource property to point to the location of the SVG. You can do as follows: map1.MapSource = "C:\\temp\\CustomMap.svg"; Link to comment Share on other sites More sharing options...
Bernhard Posted December 13, 2007 Author Report Share Posted December 13, 2007 I change the path to Map1.MapSource = "D:\\tmp\\yourshapename.svg"; That didnt solve my problem. The Path is correct an the svg works in the IE. I add my Testprojekt, can you please help me. Bernhard Link to comment Share on other sites More sharing options...
maximop Posted December 13, 2007 Report Share Posted December 13, 2007 I had trouble loading this SVG with Adobe Illustrator; the SVG shows blank. Furthermore, there are no labels set for the map regions; this explains why you are unable to populate data to the custom map. In addition, there are no shapes set when opening this file with Adobe. Did you created this custom SVG? If so, can you provide me with the Illustrator file used? In any case, I would like for you to follow the steps outlined on the following link as those same steps can be applied when creating a custom map for ChartFX Maps. Please follow the link below: http://community.softwarefx.com/blogs/powergadgets_team_blog/archive/2007/04/12/Creating-Custom-SVGs-for-PowerGadgets.aspx Once you properly create this custom SVG, test it and see if you are able to view it in your application. If you replicate the issue, please provide me with the new SVG you have created and a sample project where I can replicate this problem. Link to comment Share on other sites More sharing options...
Bernhard Posted December 14, 2007 Author Report Share Posted December 14, 2007 Thank you for fast reply. I convert this SVG from AcrView 3.x files with shp2svg. I have the same effect in Adobe Illustrator, the SVG shows blank. Next week i test the export with ArcView 9.x , 3.x cant export to svg. Have anyone experience with AcrView files? Have a good weekend! Link to comment Share on other sites More sharing options...
Bernhard Posted December 19, 2007 Author Report Share Posted December 19, 2007 Now i have tested an export with Arcview 9.1. And i cant use the svg (exported from ArcView) in ChartFX Maps. I attached the svg (exported from ArcView) and the ai(exported from ArcView) file. Is there a way to use those files? We have all Maps as ArcView files (whole country) Please help. Link to comment Share on other sites More sharing options...
Bernhard Posted January 8, 2008 Author Report Share Posted January 8, 2008 Can anybody help? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.