Copied to clipboard

Flag this post as spam?

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


  • Curtis McCaw 9 posts 119 karma points
    Nov 26, 2019 @ 11:24
    Curtis  McCaw
    0

    Our.Umbraco.GMaps

    Using this package: https://our.umbraco.com/packages/backoffice-extensions/ourumbracogmaps-google-maps-for-umbraco-8/

    How do we render the map on the front end?

    In the back office, i've selected the location and can see it on the map. That all works well. I can get the values e.g. Lat & Long but not sure how to render the map.

        @if (item.Office != null)
                {
                    var gmap = item.Office;
                    <div>@gmap.Address.Coordinates</div>
                    <div id="map"></div>
                }
    

    Any advice appreciated.

  • Yakov Lebski 427 posts 1654 karma points
    Nov 30, 2019 @ 04:26
    Yakov Lebski
    0
        <div id="map" style="width: 100%; min-height: 500px;"></div>
    @Html.RenderMapScripts(model)
    

    something like this

  • Curtis McCaw 9 posts 119 karma points
    Dec 02, 2019 @ 09:03
    Curtis  McCaw
    100

    Thanks, I got it sorted with something similar.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies