Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
"Microsoft JScript runtime error: Object doesn't support property or method igMap
posted

I am using infragistics JQUery map in MS sharepoint project and i am getting this below error. I have used the same infragistics jquery map in ASP.NET web project and i am able to get the map but using sharepoint project i am getting the below error.

ERROR: "Microsoft JScript runtime error: Object doesn't support property or method igMap."

Please see below for the code i am using.

<script type="text/javascript">
$.ig.loader({ scriptPath: "ig_ui/js/", cssPath: "ig_ui/css/", resources: "igMap" });
$.ig.loader(function () {
$("#map").igMap({ width: "100%",
verticalZoomable: true,
horizontalZoomable: true,
overviewPlusDetailPaneVisibility: "visible",
backgroundContent: { type: "openStreet" },
series: [{ type: "geographicSymbol",
name: "worldCities",
dataSource: data,
latitudeMemberPath: "Latitude",
longitudeMemberPath: "Longitude",
markerType: "automatic",
markerBrush: "olive",
showTooltip: true,
tooltipTemplate: "cityTemplate"
}],
windowResponse: "immediate",
windowRect: { left: 0.20, top: 0.20, height: 0.45, width: 0.45 }
});
});

 

Please let me know if anybody faced same kind of issue earlier and has some idea to solve this.

Parents
No Data
Reply
  • 255
    Suggested Answer
    posted

    Hi Lakshmi,

    It seems you are facing issues with loading the required scripts. I am not sure how you load your scripts, but SharePoint has its own object model, used for JavaScript (SharePoint JavaScript Object Model).

    You might want to check the following MSDN article: http://msdn.microsoft.com/en-us/library/ff411788.aspx

Children