Copied to clipboard

Flag this post as spam?

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

  • Dan 1266 posts 3836 karma points c-trib
    Apr 04, 2017 @ 20:18

    Terratype Map not rendering - console errors

    Hey Jonathan,

    Mega new package - congrats and thanks for sharing it with the world!

    I've just installed it (v1.0.10) via the Umbraco (v7.5.11) back-office but I'm hitting a lot of browser console errors and the map is failing to load, both in the datatype configuration area and in the content section once the datatype has been added to a doc-type.

    The error is rather unhelpful (to me at least):

    Uncaught TypeError: Cannot read property 'type' of undefined
    at Object.<anonymous> (Terratype.GoogleMapsV3.js?cache=1.0.10:1330)
    at Object.broadcastSingle (Terratype.GoogleMapsV3.js?cache=1.0.10:50)
    at Terratype.GoogleMapsV3.js?cache=1.0.10:263
    (anonymous) @ Terratype.GoogleMapsV3.js?cache=1.0.10:1330
    broadcastSingle @ Terratype.GoogleMapsV3.js?cache=1.0.10:50
    (anonymous) @ Terratype.GoogleMapsV3.js?cache=1.0.10:263

    The doc-type editor and console look like so at the moment:

    enter image description here

    The contents of the JSON config are:

      "config": {
        "height": 400,
        "gridHeight": 400,
        "debug": "2",
        "icon": {
          "id": "redmarker",
          "url": "",
          "size": {
            "width": 22,
            "height": 40
          "anchor": {
            "horizontal": "center",
            "vertical": "bottom"
        "label": {
          "enable": false,
          "editPosition": "0",
          "id": "standard"
        "provider": {
          "id": "Terratype.GoogleMapsV3",
          "grid": {
            "enable": false
          "variety": {
            "basic": true
          "scale": {
            "enable": false
          "zoomControl": {
            "enable": true,
            "position": "0"
          "version": 3,
          "forceHttps": true,
          "language": "",
          "predefineStyling": "",
          "showRoads": true,
          "showLandmarks": true,
          "showLabels": true,
          "streetView": {
            "enable": false,
            "position": 0
          "fullscreen": {
            "enable": false,
            "position": 0
          "panControl": {
            "enable": false
          "draggable": true,
          "styles": [],
          "apiKey": "MY-API-KEY"
        "search": {
          "enable": 1,
          "limit": {
            "countries": [
      "position": {
        "id": "WGS84",
        "precision": 6,
        "datum": "55.4063207,10.3870147"
      "zoom": 12,
      "lookup": "london, uk"

    Any ideas?

    Thanks :)

  • Jonathan Richards 288 posts 1742 karma points MVP
    Apr 04, 2017 @ 21:07
    Jonathan Richards

    Hey Dan,

    Beautiful bug report, honest to God, that was so good, that it literally took me less than a minute to see my obvious error on 1330; The Map Selector Type has no value.

    First off, I will fix this, and get a new release out soon (In the next few days or so)

    But before then there is a very quick fix you can do. All you need to do is set a value for the Map Selector Type.

    Set a Map Selector Type value

    As a temp fix when configuring your new Terratype Google Map, in the appearance section switch on Terrain Map. Set a Map Selector Type - its not important what value you pick. Save your datatype, then switch off Terrain Map, press Save again.

    I know this looks like I'm asking you to switch on something, save it, then switch it off again and save it, but hopefully this will solve your issue.



  • Dan 1266 posts 3836 karma points c-trib
    Apr 05, 2017 @ 08:03

    Nailed it :) Thank you, sir!

  • Jonathan Richards 288 posts 1742 karma points MVP
    Apr 10, 2017 @ 13:55
    Jonathan Richards

    FYI: Have released version 1.0.11 that fixes this issue

Please Sign in or register to post replies

Write your reply to: