Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to render google map without placed it into Content.
In other words, I get the data of this map from another source in Json as string, like:
So, for render map i use below code:
@foreach (System s in systems.Docs)
And gets the error
Terratype version 1.0.14
Umbraco version 7.7.3
I can see what you are trying to achieve, but to render, Terratype needs loads more info like what type of map to render, api keys, styling etc, this is done when you create a new datatype. Without this @Html.Terratype() has no idea whether you want a blue and green Bing Map showing latest traffic or a dusty coloured Google Map just showing Terrain and no roads.
So right now, sadly you do need to create content, you only need one though, as you can set the position of the map yourself in your razor template. Can I suggest a setting node, or a site node.
Being able to render maps without content isn't something I'm planning to write, as it would be a lot of work for me, for very little value.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted