Now, I fully understand, as its not obvious that you wanted a label with both editor and custom contents. Currently this is unsupported behavour, though I do have it in my roadmap which involves creating your own Label class inherited from Terratype.Labels.Standard class.
I can though give you a 'hack' that allows you to access the label contents that are set by the Content Editor as well as providing your own custom Html.
You can pick between numerous styles when you are first configuring the map in the developer section - at the time your are creating your own datatype.
How can I display edited label
Hi I want to display an editable label in a nested map?
@map.Label.Content doesn't work , how can I display it Many Thanks / Christina
Hi Christina,
Maybe the manual/instructions are not clear enough, and to be honest, I had to remind myself what I had done.
The way Labels are setup is that either you have a custom one using the code
(Just like you did)
OR
You allow Terratype to render a styled label with the contents set by the editor. Using the code
Now, I fully understand, as its not obvious that you wanted a label with both editor and custom contents. Currently this is unsupported behavour, though I do have it in my roadmap which involves creating your own Label class inherited from Terratype.Labels.Standard class.
I can though give you a 'hack' that allows you to access the label contents that are set by the Content Editor as well as providing your own custom Html.
I hope this helps.
Cheers
Jonathan
Hi Jonathan many thanks for helping me.
I have another question, is it possible to have a custom style to the map ?
Thanks again Christina
For map styling you may want to look at something like this: https://snazzymaps.com/
Hi Cristina,
You can pick between numerous styles when you are first configuring the map in the developer section - at the time your are creating your own datatype.
https://our.umbraco.com/packages/backoffice-extensions/terratype/#package-gallery-4
Cheers
Jonathan
ps. Snazzymaps.com will only help you if you wish to render your own map and not use the Terratype renderer, eg. @Html.Terratype() Razor command.
is working on a reply...