Per the documentation for this package, I have created a data source and a named map in the MapBuilder section. Next, I have called @Html.RenderMap(MAPALIAS) with the name of my map in my view.
When attempting to load a test page with this view I receive this error:
System.Web.Mvc.HtmlHelper
Is there a specific @using declaration I need to add for this package to work correctly?
I am running version Umbraco 7.5.3, does this package not support this version?
MapBuilder: Error when using @Html.RenderMap()
Per the documentation for this package, I have created a data source and a named map in the MapBuilder section. Next, I have called @Html.RenderMap(MAPALIAS) with the name of my map in my view.
When attempting to load a test page with this view I receive this error:
Thank you
My code for reference:
hi
i think you need to include :
or put the following line in namespaces section of the web.config in the views folder
and it will be included on all razor scripts.
Thanks for the VERY fast response, that solved that problem.
However, I am now receiving:
In reference to my map alias.
A slightly slower response then ;)
I think the map alias needs to be a string, in your code allLocations is a variable that isn't set.
I've never actually used this package, but I suspect the Alias had to be a string that maps to something in your config?
Maybe putting quotes around allLocations might work?
Yep I figured that out, plus I changed the name to ensure it was unique.
The page loads fine now. Unfortunately only the map container is being rendered, not the map itself.
I think I may have to abandon this package if I can't get it working soon.
Did you setup the datasource in the mapbuilder section?
is working on a reply...