Hi In the silver light version of the IgMap Control you could bind a shape file on its own to get a seating plan for an airliner, its was in one of the demos, i have a shape file of the parking lot at our storage depot, and want to use this shape file instead of the background content in the IgMap control to display just the parking lot, is this possible and if not when can we see some kind of functionality to display custom background content using shape files?
Regards
Andrew
Hi Andrew,
I have created a support ticket for you regarding this matter - CAS-104072-S5X9W4 and am linking it to the existing development issue item so that you will automatically receive a notification when the fix is available.
Thank you for choosing Infragistics.
Hey, Andrew
That is a bug in the MVC helper for the igMap control. We already fixed it and the fix will be distributed with the next service release which is due very soon.
In the meantime, you can use JavaScript to initialize the map control: Run the MVC code w/o background content specified, and use the source of the web page to get the JavaScript. Then just add backgroundContent: null somewhere in the control initialization.
Cheers, Lazar
Hi Petar,
thanks i will, just replied to Lazar, will see what he comes back with.
Hi Lazar,I just ried setting the background to null, and the page fails with the error below: I have attached my code sample to show you what i am trying to do. (its MVC based), thanks for the quick reply.Andrew
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
@
using
Infragistics.Web.Mvc
@{
Layout =
null
;
}
<script src="/Scripts/jquery-1.7.1.min.js" type="text/javascript"></script
>
<script src="/Scripts/jquery-ui-1.8.17.min.js" type="text/javascript"></script
<script src="/Scripts/jquery.adhoc.js" type="text/javascript"></script
<script src="/Content/Infragistics/js/infragistics.loader.js" type="text/javascript"></script
@(Html.Infragistics().Loader()
.ScriptPath(Url.Content(
"~/Content/Infragistics/js/"
))
.CssPath(Url.Content(
"~/Content/Infragistics/css/"
.Resources(
"igMap"
)
.Render()
<div
@(Html.Infragistics().Map()
.ID(
"map"
.Width(
"100%"
.Height(
.VerticalZoomable(
true
.HorizontalZoomable(
.OverviewPlusDetailPaneVisibility(
Visibility
.Visible)
//.PlotAreaBackground("rgba(68,138,223,.6)")
.BackgroundContent(
.PanModifier(
ModifierKeys
.Control)
.Series(series =>
{
series.GeographicShape(
"indianLands").ShapeMemberPath("points").MarkerType(MarkerType
.Automatic)
.ShapeDataSource(Url.Content(
"~/Content/ShapeFiles/Work_DWG_Concept6/Working_Dwg_Concept_6_ln.shp"
.DatabaseSource(Url.Content(
"~/Content/ShapeFiles/Work_DWG_Concept6/Working_Dwg_Concept_6_ln.dbf"
.Brush(
"rgba(34,108,200,1)"
.Outline(
);
})
.WindowResponse(
WindowResponse
.Immediate)
//.WindowRect(0.2470, 0.3143, 0.127, 0.127)
Please do not hesitate to contact us if any further questions regarding this matter arise.