Using this I get an ASP server error with the Exception Details: Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
First lines of StactTrace: [JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.] Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) +271 Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) +82 Newtonsoft.Json.Linq.JObject.Parse(String json) +7 Terratype.TerratypeConverter.ConvertDataToSource(PublishedPropertyType propertyType, Object source, Boolean preview) +304
It is erroring because it doesn't think the property with the alias 'goHere' is a valid Terratype property. Can you check what property has an alias of 'goHere' on your doctype. Posting a screenshot of your doctype might help me, in noticing what is happening.
If it is a slightly more advanced issue, I'm suspecting as you are new to Umbraco it is not this, but I writing this just in case, if you switch on json mode.
and then when viewing the content, copy and paste the json that is being saved for the content, I can see if there is an issue with it.
That looks a little small, could you also give me the json from the configuration of the terratype too. For your own safety overwrite any API keys with gibberish.
This will allow me to replicate your map configuration, and see if I can repeat this issue.
I suppose this is bad news, but I replicated the steps required to repeat your configuration using Umbraco 7.6.3
And a cool black map centred on Goggingen appeared when I rendered the front end.
I attach five screenshots, showing the steps I did, and maybe you can spot a difference.
Creating Terratype Datatype
Creating DocType with one property with alias 'goHere'
Creating one content node, leaving map at default location
Template code I'm using
Rendered response at front end
I suppose the big questions is what Umbraco you running, what extra packages have you added to it. I would love to try and get to the bottom of your issue.
I was using 7.6.1, updated it to the current 7.6.4, which made no difference).
Then I created a complete new site with 7.6.4 with one node having one property and it worked.
The differences are (aside from Content and Stylesheets) the database Provider (MSSQL vs. SQL CE) and minor changes to a propertyeditor.
I striped away almost everything from the original template of the former 7.6.1... no effect.
I guess the Problem relates to the version 7.6.1, since it worked in the*.3 and a clean *.4
It was your mentioning of reproducing the steps in a 7.6.3 that ket me there. I'll try to somehow move my content to the new site (which gives me the opportunity to get rid of lots of test stuff ;-) )
That particular feature isn't on my list of improvements specifically. But, I do plan to expose the underlying google map type to allow developers to add their own javascript code to achieve results like this.
Help on Terratype
Hello,
I am new to Umbraco, using version 7.6.1 and try to implement a map using Terratype to display a Google maps Routeplanner on our contact page.
Installation, data type and document type were no problem; the template is.
So far my template looks like this
Using this I get an ASP server error with the Exception Details: Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
First lines of StactTrace: [JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.] Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) +271 Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) +82 Newtonsoft.Json.Linq.JObject.Parse(String json) +7 Terratype.TerratypeConverter.ConvertDataToSource(PublishedPropertyType propertyType, Object source, Boolean preview) +304
What am I doing wrong here?
Regards Anja
Hi Anja
It is erroring because it doesn't think the property with the alias 'goHere' is a valid Terratype property. Can you check what property has an alias of 'goHere' on your doctype. Posting a screenshot of your doctype might help me, in noticing what is happening.
If it is a slightly more advanced issue, I'm suspecting as you are new to Umbraco it is not this, but I writing this just in case, if you switch on json mode.
and then when viewing the content, copy and paste the json that is being saved for the content, I can see if there is an issue with it.
Hi Jonathan,
this is the Json:
Hi Anja,
That looks a little small, could you also give me the json from the configuration of the terratype too. For your own safety overwrite any API keys with gibberish.
This will allow me to replicate your map configuration, and see if I can repeat this issue.
Cheers
Jonathan
Here you are:
<---
{ "config": { "height": 400, "gridHeight": 400, "debug": "2", "icon": { "id": "redmarker", "url": "https://mt.google.com/vt/icon/name=icons/spotlight/spotlight-poi.png", "size": { "width": 22, "height": 40 }, "anchor": { "horizontal": "center", "vertical": "bottom" } }, "label": { "enable": false, "editPosition": "0", "id": "standard" }, "provider": { "id": "Terratype.GoogleMapsV3", "version": 3, "forceHttps": true, "language": "de", "predefineStyling": "dark", "showRoads": true, "showLandmarks": false, "showLabels": true, "variety": { "basic": true, "satellite": false, "terrain": false, "selector": { "type": 1, "position": 0 } }, "streetView": { "enable": false, "position": 0 }, "fullscreen": { "enable": false, "position": 0 }, "scale": { "enable": false, "position": 0 }, "zoomControl": { "enable": true, "position": 0 }, "panControl": { "enable": false }, "draggable": true, "grid": { "enable": false }, "styles": [ { "elementType": "geometry", "stylers": [ { "color": "#212121" } ] }, { "elementType": "labels.icon", "stylers": [ { "visibility": "off" } ] }, { "elementType": "labels.text.fill", "stylers": [ { "color": "#757575" } ] }, { "elementType": "labels.text.stroke", "stylers": [ { "color": "#212121" } ] }, { "featureType": "administrative", "elementType": "geometry", "stylers": [ { "color": "#757575" } ] }, { "featureType": "administrative.country", "elementType": "labels.text.fill", "stylers": [ { "color": "#9e9e9e" } ] }, { "featureType": "administrative.landparcel", "stylers": [ { "visibility": "off" } ] }, { "featureType": "administrative.locality", "elementType": "labels.text.fill", "stylers": [ { "color": "#bdbdbd" } ] }, { "featureType": "poi", "elementType": "labels.text.fill", "stylers": [ { "color": "#757575" } ] }, { "featureType": "poi.park", "elementType": "geometry", "stylers": [ { "color": "#181818" } ] }, { "featureType": "poi.park", "elementType": "labels.text.fill", "stylers": [ { "color": "#616161" } ] }, { "featureType": "poi.park", "elementType": "labels.text.stroke", "stylers": [ { "color": "#1b1b1b" } ] }, { "featureType": "road", "elementType": "geometry.fill", "stylers": [ { "color": "#2c2c2c" } ] }, { "featureType": "road", "elementType": "labels.text.fill", "stylers": [ { "color": "#8a8a8a" } ] }, { "featureType": "road.arterial", "elementType": "geometry", "stylers": [ { "color": "#373737" } ] }, { "featureType": "road.highway", "elementType": "geometry", "stylers": [ { "color": "#3c3c3c" } ] }, { "featureType": "road.highway.controlledaccess", "elementType": "geometry", "stylers": [ { "color": "#4e4e4e" } ] }, { "featureType": "road.local", "elementType": "labels.text.fill", "stylers": [ { "color": "#616161" } ] }, { "featureType": "transit", "elementType": "labels.text.fill", "stylers": [ { "color": "#757575" } ] }, { "featureType": "water", "elementType": "geometry", "stylers": [ { "color": "#000000" } ] }, { "featureType": "water", "elementType": "labels.text.fill", "stylers": [ { "color": "#3d3d3d" } ] }, { "featureType": "administrative", "elementType": "geometry", "stylers": [ { "visibility": "off" } ] }, { "featureType": "poi", "stylers": [ { "visibility": "off" } ] }, { "featureType": "transit", "stylers": [ { "visibility": "off" } ] } ], "apiKey": "MusharingdumadodumadaThereswhiskeyinthejar" }, "search": { "enable": 0, "limit": { "countries": [] } } }, "position": { "id": "WGS84", "precision": 6, "datum": "48.341563,10.861504" }, "zoom": 12 }
--->
Hi Anja,
I suppose this is bad news, but I replicated the steps required to repeat your configuration using Umbraco 7.6.3
And a cool black map centred on Goggingen appeared when I rendered the front end.
I attach five screenshots, showing the steps I did, and maybe you can spot a difference.
Creating Terratype Datatype
Creating DocType with one property with alias 'goHere'
Creating one content node, leaving map at default location
Template code I'm using
Rendered response at front end
I suppose the big questions is what Umbraco you running, what extra packages have you added to it. I would love to try and get to the bottom of your issue.
Cheers
Jonathan
Hallo Jonathan,
I was using 7.6.1, updated it to the current 7.6.4, which made no difference). Then I created a complete new site with 7.6.4 with one node having one property and it worked. The differences are (aside from Content and Stylesheets) the database Provider (MSSQL vs. SQL CE) and minor changes to a propertyeditor.
I striped away almost everything from the original template of the former 7.6.1... no effect. I guess the Problem relates to the version 7.6.1, since it worked in the*.3 and a clean *.4 It was your mentioning of reproducing the steps in a 7.6.3 that ket me there. I'll try to somehow move my content to the new site (which gives me the opportunity to get rid of lots of test stuff ;-) )
Thank you
Anja
Hello Jonathan,
will there be a route planner feature?
Regards
Anja
Hi Anja,
That particular feature isn't on my list of improvements specifically. But, I do plan to expose the underlying google map type to allow developers to add their own javascript code to achieve results like this.
Cheers
Jonathan
is working on a reply...