@@ -34,7 +34,7 @@ import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.*;
3434/**
3535 * The <% - type %> manager allows to add <% - type %> s to a map.
3636 */
37- public class <% - camelize (type) %> Manager extends AnnotationManager<<% - camelize (type) %> , On<% - camelize (type) %> ClickListener, On<% - camelize (type) %> LongClickListener> {
37+ public class <% - camelize (type) %> Manager extends AnnotationManager<<% - camelize (type) %> , <% - camelize (type) %> Options, On<% - camelize (type) %> ClickListener, On<% - camelize (type) %> LongClickListener> {
3838
3939 public static final String ID_GEOJSON_SOURCE = "mapbox-android-<% - type %> -source";
4040 public static final String ID_GEOJSON_LAYER = "mapbox-android-<% - type %> -layer";
@@ -116,39 +116,6 @@ public class <%- camelize(type) %>Manager extends AnnotationManager<<%- camelize
116116 return <% - camelize (type) %> .ID_KEY;
117117 }
118118
119- /**
120- * Create a <% - type %> on the map from a <% - type %> options.
121- *
122- * @param options the <% - type %> options to add to the map
123- * @return the newly created <% - type %>
124- */
125- @UiThread
126- public <% - camelize (type) %> create<% - camelize (type) %> (@NonNull <% - camelize (type) %> Options options) {
127- <% - camelize (type) %> <% - type %> = options.build(currentId);
128- add(<% - type %> );
129- updateSource();
130- return <% - type %> ;
131- }
132-
133- /**
134- * Create <% - type %> s on the map from a list of option instances.
135- *
136- * @param options the list of <% - type %> options to add to the map
137- * @return a list of the newly created <% - type %> s
138- */
139- @UiThread
140- public List<<% - camelize (type) %> > create<% - camelize (type) %> s(@NonNull List<<% - camelize (type) %> Options> options) {
141- List<<% - camelize (type) %> > <% - type %> s = new ArrayList<> ();
142- <% - camelize (type) %> <% - type %> ;
143- for (<% - camelize (type) %> Options option : options) {
144- <% - type %> = option.build(currentId);
145- <% - type %> s.add(<% - type %> );
146- add(<% - type %> );
147- }
148- updateSource();
149- return <% - type %> s;
150- }
151-
152119 private static PropertyValue<?>[] getLayerDefinition() {
153120 return new PropertyValue[]{
154121<% for (const property of properties) { -% >
0 commit comments