Closed phptek closed 5 years ago
It would be great if the $geojsonservice static accepted strings that mapped to methods, just like $summary_fields works.
$geojsonservice
$summary_fields
Then we can do stuff like this, where the map's JS has access to layer.feature.properties.foo for each model:
layer.feature.properties.foo
private static $geojsonservice = [ 'geometry_field' => 'Location', 'searchable_fields' => [ 'Address', 'Location', ], 'property_map' => [ 'ID' => 'id', 'Type' => 'type', 'Foo' => 'foo', ], ]; public function getFoo() { return 'Bar'; }
Mate, this should work...
It would be great if the
$geojsonservice
static accepted strings that mapped to methods, just like$summary_fields
works.Then we can do stuff like this, where the map's JS has access to
layer.feature.properties.foo
for each model: