Hello,
We are using MapSuite version 7. While working on another issue I discovered that neither the OnMapCreated or the OnMapCreating events are firing. I also note that neither method is listed in the MVC Javascript API Refrence.
We maintain all our javascript in separate files. This seems to be affecting all maps, which are created/setup in controllers, and then rendered in a MVC Partial view such as this:
@model ACCESSWeb.Models.Maps.BasicMap
@using ThinkGeo.MapSuite.MvcEdition
<
div
id
=
"DemoMap"
>
@Html.Partial("~/Views/Shared/Mapping/Partial/_CommonMapElementsPartial.cshtml")
@Html.ThinkGeo().Map(Model.Map).Render()
</
div
>
I have tried with following test method defined in both separate javascript files and with a script tag within the Razor view, neither of which work. I do not know if I am doing something wrong, as this is how I have seen others instructed to Any assitance would be appreciated.
var
OnMapCreated =
function
(map) {
alert(
"MapCreated"
);
}