Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Craig100 972 posts 2094 karma points c-trib
    May 17, 2017 @ 12:07
    Craig100
    1

    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

  • Jonathan Richards 286 posts 1730 karma points MVP
    May 17, 2017 @ 12:46
    Jonathan Richards
    100

    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.

    @Html.Terratype(new Options{Zoom=4, Height=400},Model.Map)
    

    Sorry for this

    Cheers

    Jonathan

  • Biagio Paruolo 1472 posts 1611 karma points c-trib
    Aug 28, 2018 @ 08:33
    Biagio Paruolo
    0

    This workaround for setting up the height works for me...

  • Craig100 972 posts 2094 karma points c-trib
    May 17, 2017 @ 14:00
    Craig100
    1

    Hi Jonathan,

    Thanks for the workaround. That gives me just what I needed at zoom=10, height=400.

    Cheers,

    Craig

  • Jonathan Richards 286 posts 1730 karma points MVP
    May 21, 2017 @ 16:00
    Jonathan Richards
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft