If @Html.Terratype(Model.Map) works fine, why doesn't @Html.Terratype(new Options{Zoom=4},Model.Map)? No Intellisense errors :( I'm guessing I've messed the syntax up somehow.
Sadly you have uncovered a bug, I have fixed this but it will take a few days before I'm able to issue a new nuget package. There is a temporary fix you can do your end which is in the options set the height value to a specific pixel value and hopefully this will make the map appear properly.
Can't get zoom option working
Umb 7.6.1 + Terratype 1.0.12 +Terratype.GoogleMapsV3 1.0.12
If
@Html.Terratype(Model.Map)
works fine, why doesn't@Html.Terratype(new Options{Zoom=4},Model.Map)
? No Intellisense errors :( I'm guessing I've messed the syntax up somehow.Any advice appreciated.
Thanks,
Craig
Hi Craig,
Sadly you have uncovered a bug, I have fixed this but it will take a few days before I'm able to issue a new nuget package. There is a temporary fix you can do your end which is in the options set the height value to a specific pixel value and hopefully this will make the map appear properly.
Sorry for this
Cheers
Jonathan
This workaround for setting up the height works for me...
Hi Jonathan,
Thanks for the workaround. That gives me just what I needed at zoom=10, height=400.
Cheers,
Craig
Hi Craig,
FYI: I have released a new version of Terratype 1.0.13, that fixes this issue without the need for the workaround.
Cheers
Jonathan
is working on a reply...