Copied to clipboard

Flag this post as spam?

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


  • Daniel Gillett 72 posts 149 karma points
    Mar 04, 2017 @ 09:12
    Daniel Gillett
    1

    Terratype DataType Settings Don't Update

    Hi Jonathan,

    I thought I would add this one as a new bug/question as it isn't the same issue I had previously.

    When I create the Terratype for the 1st time, I am able to select and save different values. However, when I go back into the "DataType" to change any of the values - they don't update.

    Trying to update the map style

    Saved but not updated

    ...I remember what you said about not wanting users to change the values through code... the issue I'm having is from the DataType settings where I first created and set those values.

    The second thing I noticed was that Firefox is not displaying the dropdown list values. The values are there, but they are just not visible. Athough it works fine in Chrome.

    Firefox 51.0.1

    Below are some screen-shots where I tried updating the datatype values using Chrome. This example shows that the drop-down values are visible in the Chrome browser.

    Trying to update the map settings using Chrome (drop-down list is visible.

    Latest Version 51.0.1

    This is an awesome Package! Thanks so much for creating it and for your earlier help with getting it working for me!

  • Jonathan Richards 288 posts 1742 karma points MVP
    Mar 04, 2017 @ 13:19
    Jonathan Richards
    0

    Hi Daniel,

    I do my development using Chome, and then do some tests using Internet Explorer, because, well, IE doesn't play nicely. So it was a bit of a shock to see that this was caused by an unresolved Firefox bug

    Have now released 1.0.8, which fixes this. And a big Thank you for reporting this, you are really helping in making this package better.

    Cheers

    Jonathan

  • Daniel Gillett 72 posts 149 karma points
    Mar 05, 2017 @ 13:04
    Daniel Gillett
    1

    This is an awecome package! Can you please tell me - I installed this via NuGet - if I can simply overwrite the 1.0.7 package?

    Many thanks! Daniel

  • Jonathan Richards 288 posts 1742 karma points MVP
    Mar 05, 2017 @ 13:59
    Jonathan Richards
    0

    Sure can, using Nuget to upgrade Terratype is a doddle.

  • Daniel Gillett 72 posts 149 karma points
    Mar 11, 2017 @ 08:42
    Daniel Gillett
    1

    Hi Jonathan!

    I've just had some more time to work on my mother's website. I was able to run the NuGet update manager and update to 1.0.8 version. Thank you for fixing the issues with the Firefox drop down values!

    Can you confirm, that if I go into the Developer Section / DataType / Terratype Map ...that I can update those values? Or do I need to recreate the datatype in order to change those values?

    What's happening is that, when I first created the datatype, I used "Retro" as the map style. But now I think it would look better to use the "Standard" map style. But when I hit save, it goes back to the Retro version.

    Sorry if I'm being a pain. I just want to be sure that I will need to recreate the datatype, or if I should be able to make changes here.

    Many thanks for your help! Daniel

  • Jonathan Richards 288 posts 1742 karma points MVP
    Mar 11, 2017 @ 12:06
    Jonathan Richards
    0

    Hi Daniel,

    Sorry, I'm unable to replicate your error. Yes you should be able to change the styling at anytime.

    This is a short video of me creating a new datatype, creating new content using this datatype and then me changing the styling multiple times in Firefox

    My only wonder, is if your datatype has become corrupt in some way, if you change the debugger setting at the bottom of the datatype to show Json, this will display the underlying configuration that your datatype is using. If you post that here, I can copy and paste and recreate the same Terratype datatype as you have.

    How to copy Terratype configuration

    Cheers

    Jonathan

  • Daniel Gillett 72 posts 149 karma points
    Mar 15, 2017 @ 15:09
    Daniel Gillett
    1

    Hi Jonathan!

    I've got another window to work on this! Thank you very much for posting the video of your copy of Terratype! ...mine is clearly not behaving correctly. lol

    Here is my Json ...hope it helps you help me. :-D

    Many thanks, Daniel

    {
      "config": {
        "height": 400,
        "gridHeight": 400,
        "debug": "2",
        "icon": {
          "id": "goldstar",
          "url": "https://mt.google.com/vt/icon/name=icons/spotlight/star_L_8x.png&scale=2",
          "size": {
            "width": 42,
            "height": 42
          },
          "anchor": {
            "horizontal": "center",
            "vertical": "center"
          }
        },
        "label": {
          "enable": false,
          "editPosition": "0",
          "id": "standard"
        },
        "provider": {
          "id": "Terratype.GoogleMapsV3",
          "version": 3,
          "forceHttps": true,
          "language": "",
          "predefineStyling": "retro",
          "showRoads": true,
          "showLandmarks": true,
          "showLabels": true,
          "variety": {
            "basic": true,
            "satellite": true,
            "terrain": true,
            "selector": {
              "type": 1,
              "position": 0
            }
          },
          "streetView": {
            "enable": true,
            "position": 0
          },
          "fullscreen": {
            "enable": true,
            "position": 0
          },
          "scale": {
            "enable": true,
            "position": 0
          },
          "zoomControl": {
            "enable": true,
            "position": 0
          },
          "panControl": {
            "enable": false
          },
          "draggable": true,
          "styles": [
            {
              "elementType": "geometry",
              "stylers": [
                {
                  "color": "#ebe3cd"
                }
              ]
            },
            {
              "elementType": "labels.text.fill",
              "stylers": [
                {
                  "color": "#523735"
                }
              ]
            },
            {
              "elementType": "labels.text.stroke",
              "stylers": [
                {
                  "color": "#f5f1e6"
                }
              ]
            },
            {
              "featureType": "administrative",
              "elementType": "geometry.stroke",
              "stylers": [
                {
                  "color": "#c9b2a6"
                }
              ]
            },
            {
              "featureType": "administrative.land_parcel",
              "elementType": "geometry.stroke",
              "stylers": [
                {
                  "color": "#dcd2be"
                }
              ]
            },
            {
              "featureType": "administrative.land_parcel",
              "elementType": "labels.text.fill",
              "stylers": [
                {
                  "color": "#ae9e90"
                }
              ]
            },
            {
              "featureType": "landscape.natural",
              "elementType": "geometry",
              "stylers": [
                {
                  "color": "#dfd2ae"
                }
              ]
            },
            {
              "featureType": "poi",
              "elementType": "geometry",
              "stylers": [
                {
                  "color": "#dfd2ae"
                }
              ]
            },
            {
              "featureType": "poi",
              "elementType": "labels.text.fill",
              "stylers": [
                {
                  "color": "#93817c"
                }
              ]
            },
            {
              "featureType": "poi.park",
              "elementType": "geometry.fill",
              "stylers": [
                {
                  "color": "#a5b076"
                }
              ]
            },
            {
              "featureType": "poi.park",
              "elementType": "labels.text.fill",
              "stylers": [
                {
                  "color": "#447530"
                }
              ]
            },
            {
              "featureType": "road",
              "elementType": "geometry",
              "stylers": [
                {
                  "color": "#f5f1e6"
                }
              ]
            },
            {
              "featureType": "road.arterial",
              "elementType": "geometry",
              "stylers": [
                {
                  "color": "#fdfcf8"
                }
              ]
            },
            {
              "featureType": "road.highway",
              "elementType": "geometry",
              "stylers": [
                {
                  "color": "#f8c967"
                }
              ]
            },
            {
              "featureType": "road.highway",
              "elementType": "geometry.stroke",
              "stylers": [
                {
                  "color": "#e9bc62"
                }
              ]
            },
            {
              "featureType": "road.highway.controlled_access",
              "elementType": "geometry",
              "stylers": [
                {
                  "color": "#e98d58"
                }
              ]
            },
            {
              "featureType": "road.highway.controlled_access",
              "elementType": "geometry.stroke",
              "stylers": [
                {
                  "color": "#db8555"
                }
              ]
            },
            {
              "featureType": "road.local",
              "elementType": "labels.text.fill",
              "stylers": [
                {
                  "color": "#806b63"
                }
              ]
            },
            {
              "featureType": "transit.line",
              "elementType": "geometry",
              "stylers": [
                {
                  "color": "#dfd2ae"
                }
              ]
            },
            {
              "featureType": "transit.line",
              "elementType": "labels.text.fill",
              "stylers": [
                {
                  "color": "#8f7d77"
                }
              ]
            },
            {
              "featureType": "transit.line",
              "elementType": "labels.text.stroke",
              "stylers": [
                {
                  "color": "#ebe3cd"
                }
              ]
            },
            {
              "featureType": "transit.station",
              "elementType": "geometry",
              "stylers": [
                {
                  "color": "#dfd2ae"
                }
              ]
            },
            {
              "featureType": "water",
              "elementType": "geometry.fill",
              "stylers": [
                {
                  "color": "#b9d3c2"
                }
              ]
            },
            {
              "featureType": "water",
              "elementType": "labels.text.fill",
              "stylers": [
                {
                  "color": "#92998d"
                }
              ]
            }
          ],
          "apiKey": "AIzaSyAknoBaroiBgb8rKnAac5LrmaDvR6_-pXA"
        },
        "search": {
          "enable": "2",
          "limit": {
            "countries": []
          }
        }
      },
      "position": {
        "id": "WGS84",
        "precision": 6,
        "datum": "37.765207,-122.24163"
      },
      "zoom": 14,
      "lookup": "Alameda, CA, USA"
    }
    
  • Jonathan Richards 288 posts 1742 karma points MVP
    Mar 15, 2017 @ 20:12
    Jonathan Richards
    0

    Hi Daniel,

    Here is another Gif of me taking your json above and using it to create a new terratype datatype, the only thing I had to changed was your apiKey and I switched to using mine instead. And as you can see I proceed to change the styling without incidence.

    I do wonder, when you try and change the styling, what it actually the issue. Do you only see retro in the list, or can you pick other styles, but the map never changes. Do you see an console error in Firefox, when you try and change styling. Press F12 inside Firefox and the developer tools should appear, select console

    Console tab in dev tools in Firefox

    My other thought, is is there some option buried in the Google Console API (This is the thing you have to use to create an ApiKey), I had a quick 5 minute look and I couldn't see anything to click that can switch on/off map styles

    If you get chance to have a look, I would be very grateful.

    Cheers

    Jonathan

Please Sign in or register to post replies

Write your reply to:

Draft