Copied to clipboard

Flag this post as spam?

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


  • Chester Campbell 98 posts 209 karma points
    Oct 28, 2016 @ 19:16
    Chester Campbell
    1

    Model.Api is null & Model.Format is incorrect

    Hi,

    I just installed AGM 2.0.3 on an Umbraco 7.2.2 site and I configured my AGM Data Type with a Google API Key and set the format to "Json".

    In my partial view I get my property value like this (where currNode is an IPublishedContent representing the current page):

    AngularGoogleMaps.Model mapModel = currNode.GetPropertyValue<AngularGoogleMaps.Model>("geoLocation");
    

    In mapModel I have two problems. The biggest problems is that mapModel.Api is null ... so I can't get my Google API Key for my front end Google Map implementation.

    And second is that mapModel.Format is "csv" and not "json". Not sure this is actually a "problem" but it's definitely wrong as my Data Type is configured to save the data as json.

  • 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