Is it possible to retrieve the API-key from the property-editor?
Or even better, can I make Terrartype return the full JS-link with API-key?
I don't want to use @Html.Terratype. It's very slow somehow, and sometimes I need a bit more control (multiple markers, or clustering).
But at this point, I'm entering a API-key in the propertyeditor, but also in a config-location (web.config or a config-node). If Terratype could return the API key, it's one config-setting less.
Getting API Key manualy
Is it possible to retrieve the API-key from the property-editor? Or even better, can I make Terrartype return the full JS-link with API-key?
I don't want to use @Html.Terratype. It's very slow somehow, and sometimes I need a bit more control (multiple markers, or clustering).
But at this point, I'm entering a API-key in the propertyeditor, but also in a config-location (web.config or a config-node). If Terratype could return the API key, it's one config-setting less.
Hi Jeroen,
Its part of the Terratype.Models.Model and you can get it easily, once you have cast the Provider property to GoogleV3 provider type.
In Razor, if you knew the map was a Google V3 map, you could use this to output it.
Cheers
Jonathan
Hi Jonathan,
thank you for the quick response. That will save some time.
is working on a reply...