Skip to content

Commit

Permalink
JSON: include marker class in GeoJSON details ushahidi#853
Browse files Browse the repository at this point in the history
This is a hack so when plugins like sharing_two pass extra markers
via events we can tell which is which. Sure there is a better way
but this is quick.
  • Loading branch information
rjmackay committed Oct 1, 2012
1 parent 0123461 commit 3949af0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/json.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ protected function markers_geojson($incidents, $category_id, $color, $icon, $inc
'icon' => $icon,
'thumb' => $thumb,
'timestamp' => strtotime($marker->incident_date),
'count' => 1
'count' => 1,
'class' => get_class($marker)
);
$json_item['geometry'] = array(
'type' => 'Point',
Expand Down

0 comments on commit 3949af0

Please sign in to comment.