type == Parking::TYPE_NO_STOP_BIKE) { $iconPath = 'http://resource.weilaibike.com/ban-stop.png'; $strokeColor = '#FF0000'; $fillColor = '#FF000030'; } else { $iconPath = 'http://resource.weilaibike.com/stop1.png'; $strokeColor = '#FF00FF'; $fillColor = '#FF00FF66'; } return [ 'name' => $model->name, 'centre' => array_merge([ 'iconPath' => $iconPath, 'width' => 24, 'height' => 28, 'zIndex' => $model->id, 'id' => $model->id, 'type' => $model->type, ],$model->parking_centre), 'points' => $model->parking_fence, 'radius' => $model->parking_radius, 'type' => $model->type, 'type_text' => Parking::$typeMaps[$model->type], 'strokeWidth' => 4, 'strokeColor' => $strokeColor, 'fillColor' => $fillColor ]; } }