Methods
(static) fetchTemplate(url) → {string}
fetch a file based template via url. Check if the url starts with this.templateUrlPrefix first.
Parameters:
Name | Type | Description |
---|---|---|
url |
string |
- Source:
Returns:
template
- Type
- string
(async, static) getTemplate(layer, style) → {string}
Get the template for a layer without resolving it
Parameters:
Name | Type | Description |
---|---|---|
layer |
Layer | |
style |
string | popup or sidebar |
- Source:
Returns:
template
- Type
- string
(async, static) render(content, response, layer, style)
Builds and returns an array of features and HTML describing
the features defined in content.
Returns an object like
```
{
response: response,
feature: feature,
layer: layer,
html: html
}
```
Parameters:
Name | Type | Description |
---|---|---|
content |
object | |
response |
object | |
layer |
object | |
style |
string | "popup" or "sidebar" |
- Source: